ZMSFileChangeLogStore implements ChangeLogStore { @Override public void setLastModificationTimestamp(String newLastModTime) { changeLogStoreCommon.setLastModificationTimestamp(newLastModTime); } ZMSFileChangeLogStore(String rootDirectory, PrivateKey privateKey, String privateKeyId); @Override boolean supportsFullRefresh(); @Override SignedDomain getLocalSignedDomain(String domainName); @Override SignedDomain getServerSignedDomain(String domainName); @Override void removeLocalDomain(String domainName); @Override void saveLocalDomain(String domainName, SignedDomain signedDomain); @Override List<String> getLocalDomainList(); ZMSClient getZMSClient(); @Override Set<String> getServerDomainList(); @Override SignedDomains getServerDomainModifiedList(); @Override void setLastModificationTimestamp(String newLastModTime); @Override SignedDomains getUpdatedSignedDomains(StringBuilder lastModTimeBuffer); void setChangeLogStoreCommon(ZMSFileChangeLogStoreCommon changeLogStoreCommon);  }
@Test public void testLastModificationTimestamp() { MockZMSFileChangeLogStore fstore = new MockZMSFileChangeLogStore(FSTORE_PATH, null, null); ZMSFileChangeLogStoreCommon cstore = new ZMSFileChangeLogStoreCommon(FSTORE_PATH); assertNull(cstore.retrieveLastModificationTime()); final String now = Long.toString(System.currentTimeMillis()); fstore.setLastModificationTimestamp(now); assertEquals(cstore.retrieveLastModificationTime(), now); fstore.setLastModificationTimestamp(null); assertNull(cstore.retrieveLastModificationTime()); }