LuceneSearchEngine { @PostConstruct public void initQueryParserProperties() { queryParser.setLowercaseExpandedTerms(true); queryParser.setAllowLeadingWildcard(true); }  @PostConstruct void initQueryParserProperties(); List<String> searchForText(final String text);  }
@Test public void testInitQueryParserProperties() { underTest.initQueryParserProperties(); verify(queryParser).setLowercaseExpandedTerms(true); verify(queryParser).setAllowLeadingWildcard(true); }