NewPatternPresenter { PatternWrapper pattern52() { return new PatternWrapper(factType(), factName(), isNegatePatternMatch()); } @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 testPattern52() throws Exception { when(view.getSelectedFactType()).thenReturn("Applicant"); when(view.getBindingText()).thenReturn("app"); when(view.isNegatePatternMatch()).thenReturn(false); final PatternWrapper pattern52 = presenter.pattern52(); assertEquals("Applicant", pattern52.getFactType()); assertEquals("app", pattern52.getBoundName()); assertEquals(false, pattern52.isNegated()); }