### Question:
NewDependencyPopup { public void show(final Callback<Dependency> callback) { this.callback = callback; dependency = new Dependency(); validator = new DependencyValidator(dependency); view.clean(); view.show(); } @Inject  NewDependencyPopup(final NewDependencyPopupView view); void show(final Callback<Dependency> callback); void onOkClicked(); void onGroupIdChange(final String groupId); void validateGroupId(); void onArtifactIdChange(final String artifactId); void validateArtifactId(); void onVersionChange(final String version); void validateVersion();  }### Answer:
@Test public void testClearOldValues() throws Exception { verify( view ).clean(); newDependencyPopup.show( callback ); verify( view, times( 2 ) ).clean(); }
@Test public void testShowView() throws Exception { verify( view ).show(); }