### Question:
MongoDbAuthorityRepository implements AuthorityRepository { public MongoOperations getTemplate() { return template; }  @Override Authority getByAuthority(String authorityName); @Override List<Authority> getAll(); @Override List<Authority> getLimitedList(int offset, int limit); @Override List<Authority> getAllDefault(); @Override int getCountAll(); @Override Class<? extends Authority> getType(); @Override Authority get(String id); @Override Authority save(Authority item); @Override void delete(Authority item); void setTemplate(MongoOperations template); void setConverter(HydratingConverterFactory converter); MongoOperations getTemplate(); HydratingConverterFactory getConverter(); static final Class<MongoDbAuthority> CLASS; }### Answer:
@Test public void getTemplate(){ MongoOperations temp1; temp1 = repo.getTemplate(); assertThat(temp1, is(sameInstance(template))); }