public List<String> getAddresses() {
        if (args.length < 3) {
            return Collections.singletonList(DEFAULT_BIND_ADDRESS);
        }
        List<String> addresses = Arrays.asList(args[2].split(","));
        return addresses.stream().filter(InetAddresses::isInetAddress).collect(Collectors.toList());
    }
@Test
    void assertGetAddressesWithThreeArguments() {
        assertThat(new BootstrapArguments(new String[]{"3306", "test_conf", "127.0.0.1"}).getAddresses(), is(Collections.singletonList("127.0.0.1")));
        assertThat(new BootstrapArguments(new String[]{"3306", "test_conf", "1.1.1.1,127.0.0.1"}).getAddresses(), is(Arrays.asList("1.1.1.1", "127.0.0.1")));
    }