@Test
public void shouldUseContainerForNewComponent() throws InterceptionException, IOException {

final DogController myDog = new DogController();
InstanceContainer container = new InstanceContainer(myDog);
InstantiateInterceptor interceptor = new InstantiateInterceptor(container);

when(method.getResource()).thenReturn(new DefaultResourceClass(DogController.class));

interceptor.intercept(stack, method, null);
assertTrue(container.isEmpty());

verify(stack).next(method, myDog);
}