Everywhere I'm mocking that object.
For example I have my Entity called AdvertisingSpace
I mock AS everywhere I need it to test its collaborators (say
Publisher and Impression).
Let's say I discover myself to write something like that:
allowing(advertisingSpace.getChannel())
allowing(advertisingSpace.getSize())
allowing(advertisingSpace.getPlatform())
because some collaborators need only some of the informations in
different moment.
What I mean is to create a new VO AdvertisingSpaceAttributes with all
the attributes and a call advertisingSpace.getAttributes() which
return it.
Or still better Hollywood style methods on the collaborators which receive it.
This call will be expected in the mocks in all tests.
cheers
Uberto