Weird public Test result for Host-testing


So am basically trying to test this case. i.e when host part is not present with some assertNull and getting this error back:

expected null, but was:prog2.uri.ref.UriRef@58ded2f9

So my question. Why the hell is prog2.uri.ref.UriRef@58ded2f9 there?

This is a valid URL

prog2.uri.ref.UriRef@58ded2f9 is the “name” of the constructed object (think of it like a pointer to its memory location + type info).