### Question:
ServerManagementPerspective { public void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ) { if ( addNewServerTemplate != null ) { newServerTemplateWizard.clear(); newServerTemplateWizard.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 testOnNewTemplate() { perspective.onNewTemplate( new AddNewServerTemplate() ); verify( newServerTemplateWizard ).clear(); verify( newServerTemplateWizard ).start(); }