EntryStorage implements ISchedulerEntryStorage { @Override public void save(final ISchedulerEntry entry) throws EntryStorageAccessException { remoteEntryStorage.saveEntry(entry); } EntryStorage(final IRemoteEntryStorage remoteEntryStorage, final ISchedulerEntryStorageObserver observer, final ITimer timer);  EntryStorage(final IRemoteEntryStorage remoteEntryStorage, final ISchedulerEntryStorageObserver observer); @Override void save(final ISchedulerEntry entry); @Override void notifyActive(final ISchedulerEntry entry); @Override void notifyInactive(final ISchedulerEntry entry, final boolean keepReference); @Override void delete(final ISchedulerEntry entry); @Override List<ISchedulerEntry> listLocalEntries(); @Override int countLocalEntries(); @Override ISchedulerEntry getEntry(final String id); @Override ITimer getTimer(); @Override ISchedulerEntryFilter getFilter(); @Override void setFilter(final ISchedulerEntryFilter filter); void refresh(final long awakeUntil, final long suspendAfter); ISchedulerEntry getLocalEntry(final String id);  }
@Test public void Should_saveEntryInDatabase() throws Exception { int iCnt = countDBEntries(); EntryStorage storage = new EntryStorage(remoteEntryStorage, null); storage.save(entries[saved.length]); assertEquals(1, countDBEntries() - iCnt); }