@Test
public void Should_listEntries()
        throws Exception {

    when(storage.listLocalEntries()).thenReturn(Collections.singletonList(entryMock));
    ArgumentCaptor<List> captor = ArgumentCaptor.forClass(List.class);
    SchedulerActor actor = new SchedulerActor(args);
    actor.listEntries(listEntriesQueryMessage);
    verify(listEntriesQueryMessage, times(1)).setEntries(captor.capture());
    assertEquals(1, captor.getValue().size());
    assertSame(entryMock.getState(), captor.getValue().get(0));
}