}
@Test
public void testCyclicRef() {
HotSwappableContainer container = Clarence.please().gimmeThatProxyTainer();
container
.add(ICyclicRef.class, CyclicTest.class)
.add(ICyclicRef2.class, CyclicTest2.class)
.add(ICyclicRef3.class, CyclicTest3.class);
ICyclicRef c = container.get(ICyclicRef.class);
assertNotNull(c.getRef());
c.getRef().getRef();
ICyclicRef2 c2 = container.get(ICyclicRef2.class);
assertNotNull(c2.getRef());
assertEquals(2, c2.getRef().calls());
assertEquals(2, c2.calls()); //one because its a prototype
ICyclicRef3 c3 = container.get(ICyclicRef3.class);
assertNotNull(c3.getRef());
assertEquals(1, c.getRef().calls());