### Question:
MongoDbCategoryRepository implements CategoryRepository { @Override public Class<? extends Category> getType() { return CLASS; }  @Override List<Category> getAll(); @Override List<Category> getLimitedList(int offset, int limit); @Override int getCountAll(); @Override int removeFromCreatedOrModifiedFields(String userId); @Override Class<? extends Category> getType(); @Override Category get(String id); @Override Category save(Category item); @Override void delete(Category item); void setTemplate(MongoOperations template); void setConverter(HydratingConverterFactory converter); static final Class<MongoDbCategory> CLASS; }### Answer:
@Test public void getType_Valid(){ assertThat((Class<MongoDbCategory>)categoryRepository.getType(), is(equalTo(categoryRepository.CLASS))); }