@Test
public void shouldListenToInetAddresses() {

    observer.onInetSocketAddress("httpListenAddress",
            10080, address -> this.httpListenAddress = address
    );
    assertThat(httpListenAddress).isEqualTo(new InetSocketAddress(10080));
    writeConfigLine("httpListenAddress=127.0.0.1:11080");
    assertThat(httpListenAddress).isEqualTo(new InetSocketAddress("127.0.0.1", 11080));
    writeConfigLine("httpListenAddress=12080");
    assertThat(httpListenAddress).isEqualTo(new InetSocketAddress("0.0.0.0", 12080));
    writeConfigLine("httpListenAddress=:13080");
    assertThat(httpListenAddress).isEqualTo(new InetSocketAddress("0.0.0.0", 13080));
}