new Object[] { new PageRequest(0, 10) });
Mockito.verify(solrOperationsMock, Mockito.times(1)).queryForHighlightPage(captor.capture(),
(Class<ProductBean>) Matchers.any());
HighlightOptions capturedOptions = captor.getValue().getHighlightOptions();
Assert.assertNotNull(capturedOptions);
Assert.assertEquals("<b>", capturedOptions.getSimplePrefix());
Assert.assertEquals("</b>", capturedOptions.getSimplePostfix());
Assert.assertEquals("name", capturedOptions.getFields().get(0).getName());
Assert.assertEquals("description", capturedOptions.getFields().get(1).getName());
Assert.assertEquals("simple", capturedOptions.getFormatter());
Assert.assertEquals(Integer.valueOf(10), capturedOptions.getFragsize());
Assert.assertEquals(Integer.valueOf(20), capturedOptions.getNrSnipplets());
Assert
.assertEquals("name:with", ((SimpleStringCriteria) capturedOptions.getQuery().getCriteria()).getQueryString());
}