}
@Test
public void removeFromCreatedOrModifiedFields_Valid(){
List<MongoDbCategory> categoryList = new ArrayList<MongoDbCategory>();
MongoDbCategory category = new MongoDbCategory();
categoryList.add(category);
String userId = "123";
category.setCreatedUserId(userId);
category.setLastModifiedUserId(userId);
MongoDbCategory converted = new MongoDbCategory();
expect(template.find(query(Criteria.where("lastModifiedUserId").is(userId).orOperator(Criteria.where("createdUserId").is(userId))), categoryRepository.CLASS, CollectionNames.CATEGORY_COLLECTION)).andReturn(categoryList);
expect(converter.convert(category, Category.class)).andReturn(converted);
template.save(converted, CollectionNames.CATEGORY_COLLECTION);
expectLastCall();