@Test
public void testRunReindexOnDemand() {

    //GIVEN
    Date now = new Date();
    given(dateFactory.createNewDate()).willReturn(now);
    //WHEN
    underTest.runReindexOnDemand();
    //THEN
    verify(taskScheduler).schedule(luceneReindexerTask, now);
}