CombinedFeedService implements CrudService<CombinedFeed> { @Override public CombinedFeed get(String feedId) { return datastore.get(feedId, CombinedFeed.class); } @Inject  CombinedFeedService(InMemoryDataStore datastore, IdGenerator idGenerator,
                               @Named(DEFAULT_REFRESH_PERIOD) String defaultRefreshPeriod); @Override CombinedFeed save(CombinedFeed insertedFeed); @Override Serializable delete(String feedId); @Override CombinedFeed update(CombinedFeed feed); @Override CombinedFeed get(String feedId); @Override List<CombinedFeed> getAll();  }
@Test public void testGet() { String feedId = "1"; expect(datastore.get(feedId, CombinedFeed.class)).andReturn(null); replayAll(); testedClass.get(feedId); verifyAll(); }