TestObjectProperty is being stored as an address

Hi,

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()
prop.setName("token")
prop.setValue(sessionInfo.token)
List<TestObjectProperty> headers = new ArrayList<TestObjectProperty>()
headers.add(prop)

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!

image.png

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