@Test
public void shouldUseContainerForNewComponent() throws InterceptionException, IOException {
final DogController myDog = new DogController();
InstanceContainer container = new InstanceContainer(myDog);
InstantiateObserver observer = new InstantiateObserver(container);
when(event.getController()).thenReturn(new DefaultBeanClass(DogController.class));
observer.instantiate(event);
assertEquals(myDog,observer.getControllerInstance().getController());
}