### Question:
ServerManagementPerspective { public void onNewContainer( @Observes final AddNewContainer addNewContainer ) { if ( addNewContainer != null && addNewContainer.getServerTemplate() != null ) { newContainerWizard.clear(); newContainerWizard.setServerTemplate( addNewContainer.getServerTemplate() ); newContainerWizard.start(); } else { logger.warn( "Illegal event argument." ); } } @Inject  ServerManagementPerspective( final Logger logger,
                                        final NewServerTemplateWizard newServerTemplateWizard,
                                        final NewContainerWizard newContainerWizard ); @Perspective PerspectiveDefinition buildPerspective(); void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ); void onNewContainer( @Observes final AddNewContainer addNewContainer );  }### Answer:
@Test public void testOnNewContainer() { final ServerTemplate template = mock( ServerTemplate.class ); perspective.onNewContainer( new AddNewContainer( template ) ); verify( newContainerWizard ).clear(); verify( newContainerWizard ).setServerTemplate( eq( template ) ); verify( newContainerWizard ).start(); }