I have an object under test and want to verify it was configured correctly by testing the return values of methods. Is there a way to do this without creating one test per method?
I'm imagining something like:
assertThat(obj).fieldIs(Obj::methodA, "value1").fieldIs(Obj::methodB, "value1");