SchedulerActor { public void addEntryList(final AddEntryQueryListMessage message) throws ResolutionException, ReadValueException { for (IObject entry : message.getEntryArgumentsList()) { IOC.resolve(Keys.getOrAdd("new scheduler entry"), entry, service.getEntryStorage()); } } SchedulerActor(final IObject args); void addEntry(final AddEntryQueryMessage message); void addEntryWithSettingId(final SetEntryIdMessage message); void addEntryList(final AddEntryQueryListMessage message); void listEntries(final ListEntriesQueryMessage message); void deleteEntry(final DeleteEntryQueryMessage message); void start(final StartStopMessage message); void stop(final StartStopMessage message); void configure(final ConfigureQueryMessage message);  }
@Test public void Should_createListOfNewEntry() throws Exception { SchedulerActor actor = new SchedulerActor(args); actor.addEntryList(addListEntryQueryMessage); verify(newEntryStrategy).resolve(same(addListEntryQueryMessage.getEntryArgumentsList().get(0)), same(storage)); }