@Test(expected = IllegalArgumentException.class)
public void testGetRepositoryOfUnmanageableType() {
SolrTemplate template = new SolrTemplate(new HttpSolrServer("http://solrserver:8983/solr"), null);
template.afterPropertiesSet();
new SolrRepositoryFactory(template).getRepository(UnmanagedEntityRepository.class);
}
@SuppressWarnings("unchecked")
private void initMappingContext() {