DuraStoreRetrievalSource implements RetrievalSource { @Override public String getSourceChecksum(ContentItem contentItem) { return getSourceProperties(contentItem).get(ContentStore.CONTENT_CHECKSUM); } DuraStoreRetrievalSource(ContentStore store,
                                    List<String> spaces,
                                    boolean allSpaces); @Override synchronized ContentItem getNextContentItem(); @Override Map<String, String> getSourceProperties(ContentItem contentItem); @Override String getSourceChecksum(ContentItem contentItem); @Override ContentStream getSourceContent(ContentItem contentItem, RetrievalListener listener);  }
@Test public void testGetSourceChecksum() throws Exception { RetrievalSource source = new DuraStoreRetrievalSource(store, null, true); ContentItem contentItem = new ContentItem("spaceId", "contentId"); String sourceChecksum = source.getSourceChecksum(contentItem); assertNotNull(sourceChecksum); assertEquals(checksum, sourceChecksum); }