@SuppressWarnings("unchecked")
@Before
public void setUp() {
mappingContext = new SimpleSolrMappingContext();
solrConverter = new MappingSolrConverter(mappingContext);
entityInformationCreator = new SolrEntityInformationCreatorImpl();
Mockito.when(persitentEntityMock.getType()).thenReturn(ProductBean.class);
Mockito.when(solrOperationsMock.execute(Matchers.any(SolrCallback.class))).thenReturn(
new PageImpl<ProductBean>(Collections.<ProductBean> emptyList()));
Mockito.when(solrOperationsMock.getConverter()).thenReturn(solrConverter);