NewPatternPresenter { void cancel() { view.hide(); } @Inject  NewPatternPresenter(final View view,
                               final TranslationService translationService); @PostConstruct void setup(); void show(); void hide(); void init(final PatternPage patternPage); List<String> getFactTypes();  }
@Test public void testCancel() throws Exception { presenter.cancel(); verify(view).hide(); }