@Test
public void testGetIPWhenSuccessful() {

  SocketAddress socketAddress = new InetSocketAddress("localhost", 2000);
  String ip = SyslogUtils.getIP(socketAddress);
  assertEquals("127.0.0.1", ip);
}