fixing linux issues with mocked InetSocketAddress