@Test
public void shouldApplyCustomWriteConcernType() {
cfg.put( MongoDBProperties.WRITE_CONCERN, WriteConcernType.CUSTOM );
cfg.put( MongoDBProperties.WRITE_CONCERN_TYPE, MultipleDataCenters.class );
MongoDBConfiguration config = new MongoDBConfiguration( reader, getGlobalOptions() );
assertEquals( config.buildOptions().getWriteConcern(), new MultipleDataCenters() );
}