assertEquals(template.getClass(), DefaultLuceneIndexTemplate.class);
}
public void testTemplateInjection() throws Exception {
MockControl luceneIndexTemplateControl = MockControl.createControl(LuceneIndexTemplate.class);
LuceneIndexTemplate luceneIndexTemplate = (LuceneIndexTemplate)luceneIndexTemplateControl.getMock();
LuceneIndexSupport luceneIndex = new LuceneIndexSupport() {};
luceneIndex.setLuceneIndexTemplate(luceneIndexTemplate);
luceneIndex.afterPropertiesSet();
LuceneIndexTemplate template = luceneIndex.getLuceneIndexTemplate();
assertNotNull(template);
assertEquals(template.getClass(), luceneIndexTemplate.getClass());
}