@Test
public void wrongIntegerPreferenceTest() {

    Map<String, String> properties = new HashMap<String, String>();
    properties.put(MAX_CONNECTIONS_PER_HOST.getOptionName(), "ten");
    ConnectorClusterConfig wrongConfig = new ConnectorClusterConfig(CLUSTER_NAME, null, properties);
    MongoClientConfiguration config = new MongoClientConfiguration(wrongConfig);
    try {
        config.getMongoClientOptions();
        fail("An exception must be thrown when a non integer received");
    } catch (MongoValidationException e) {
    }
}