@After
 public void tearDown() {
   Query query = new SimpleQuery(new SimpleStringCriteria("cat:test"));
   solrOperations.delete(query);
   solrOperations.commit();
 }
 @Test
 public void retrieveAllRecordCount() {
   Query query = new SimpleQuery(new SimpleStringCriteria("*:*"));
   Page<Product> products = solrOperations.queryForPage(query, Product.class);
   Assert.assertEquals(INITIAL_RECORD_COUNT, products.getTotalElements());
 }