@BeforeMethod
public void setUp() throws Exception
{
final ObjectDifferBuilder objectDifferBuilder = ObjectDifferBuilder.startBuilding();
objectDifferBuilder.circularReferenceHandling().matchCircularReferencesUsing(EQUALITY_OPERATOR);
objectDiffer = objectDifferBuilder.build();
}
@Test
public void detectsCircularReference_whenEncounteringSameObjectTwice() throws Exception