@Test
public void testGetHostnameWhenSuccessful() {

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