TestObjectProperty is being stored as an address


I am trying to pass in header properties for a PUT request.
I run into an issue when trying to store the TestObjectProperty in an array list. The value is being stored as an address instead of the actual value.

This is what I currently have:

TestObjectProperty prop = new TestObjectProperty()
List<TestObjectProperty> headers = new ArrayList<TestObjectProperty>()

When I view the values in the debugger, this is what I see:

I am new to groovy and couldn’t find any information about dereferencing in groovy.

Any help is much appreciated!


The watcher at debugging showed the datatype of the object, you will need to expand it and/or add command getting out the value.