### Question:
MongoDbOauthConsumerStoreRepository implements OAuthConsumerStoreRepository { @Override public OAuthConsumerStore get(String id) { return template.findById(id, CLASS, OAUTH_CONSUMER_COLLECTION); }  @Override OAuthConsumerStore findByUriAndServiceName(String gadgetUri, String serviceName); @Override Class<? extends OAuthConsumerStore> getType(); @Override OAuthConsumerStore get(String id); @Override OAuthConsumerStore save(OAuthConsumerStore item); @Override void delete(OAuthConsumerStore item); @Override List<OAuthConsumerStore> getAll(); @Override List<OAuthConsumerStore> getLimitedList(int offset, int limit); @Override int getCountAll(); void setTemplate(MongoOperations template); static final Class<OAuthConsumerStoreImpl> CLASS; }### Answer:
@Test public void get_Valid() { String id = "123"; OAuthConsumerStoreImpl found = new OAuthConsumerStoreImpl(); expect(template.findById(id, oauthConsumerStoreRepository.CLASS, CollectionNames.OAUTH_CONSUMER_COLLECTION)).andReturn(found); replay(template); assertThat(found, is(sameInstance(oauthConsumerStoreRepository.get(id)))); }