@Test
public void shouldParseIPv6ServerAddressWithPort() {

    address = MongoUtil.parseAddress("[::1/128]:28017");
    assertThat(address.getHost()).isEqualTo("::1/128"); // removes brackets
    assertThat(address.getPort()).isEqualTo(28017);
}