assertEquals(template.getClass(), DefaultLuceneSearchTemplate.class);
}
public void testTemplateInjection() throws Exception {
MockControl luceneSearcherTemplateControl = MockControl.createControl(LuceneSearchTemplate.class);
LuceneSearchTemplate luceneSearchTemplate = (LuceneSearchTemplate)luceneSearcherTemplateControl.getMock();
LuceneSearchSupport luceneSearch = new LuceneSearchSupport() {};
luceneSearch.setLuceneSearcherTemplate(luceneSearchTemplate);
luceneSearch.afterPropertiesSet();
LuceneSearchTemplate template = luceneSearch.getLuceneSearcherTemplate();
assertNotNull(template);
assertEquals(template.getClass(), luceneSearchTemplate.getClass());
}