@Test
public void populatesPersistentPropertyWithCustomFieldNamingStrategy() {
MongoMappingContext context = new MongoMappingContext();
context.setApplicationContext(applicationContext);
context.setFieldNamingStrategy(new FieldNamingStrategy() {
public String getFieldName(PersistentProperty<?> property) {
return property.getName().toUpperCase(Locale.US);
}
});