### Question:
CopyPopupPresenter { public void copy(final ParameterizedCommand<String> command) { this.command = checkNotNull("command", command); view.clear(); view.display(); } @Inject  CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void errorDuringProcessing(final String message); void save(); void hide();  }### Answer:
@Test public void testCopy() { final String newTemplateName = "NewTemplateName"; when( view.getNewTemplateName() ).thenReturn( newTemplateName ); final ParameterizedCommand command = mock( ParameterizedCommand.class ); presenter.copy( command ); verify( view ).clear(); verify( view ).display(); presenter.save(); verify( command ).execute( newTemplateName ); }