@Test
public void wrongSeedsTest() {

    Map<String, String> properties = new HashMap<String, String>();
    properties.put(HOST.getOptionName(), SERVER_IP_LIST);
    properties.put(PORT.getOptionName(), SERVER_PORT);
    ConnectorClusterConfig wrongConfig = new ConnectorClusterConfig(CLUSTER_NAME, null, properties);
    MongoClientConfiguration config = new MongoClientConfiguration(wrongConfig);
    try {
        config.getSeeds();
        fail("An exception must be thrown when number of ports and hosts are different");
    } catch (ConnectionException e) {
    }
}