PoolConnector extends MongoConnector { @Override public MongoClient getClient() { return new MongoClient(super.addresses, super.options()); } PoolConnector(Builder builder); @Override MongoClient getClient();  }
@Test void getClient() { List<ServerAddress> hosts = new ArrayList<>(); hosts.add(new ServerAddress("localhost", 27017)); MongoConnector.Builder builder = MongoConnector.builder(); builder.pool(hosts); builder.timeout(100); PoolConnector connector = new PoolConnector(builder); try { connector.getClient(); } catch (Exception ex) { } }