@Test(expected = CyclicDependencyException.class)
public void testEnter() {

  final CallStack callStack = new CallStack();
  callStack.enter(resource1);
  callStack.enter(resource2);
  callStack.enter(resource2);
}