SchedulerActor { public void start(final StartStopMessage message) throws ServiceStartupException, IllegalServiceStateException { service.start(); } 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_startService() throws Exception { new SchedulerActor(args).start(mock(StartStopMessage.class)); verify(service).start(); }