@Test
public void checkDeadLockDetection() throws AttributeNotFoundException {

    Map result = (Map) converter.extractObject(new SelfRefBean1(), new Stack<String>(), true);
    assertNotNull("Bean 2 is set",result.get("bean2"));
    assertNotNull("Bean2:Bean1 is set",((Map)result.get("bean2")).get("bean1"));
    assertEquals("Reference breackage",((Map)result.get("bean2")).get("bean1").getClass(),String.class);
    assertTrue("Bean 3 should be resolved",result.get("bean3") instanceof Map);
}