@Test
public void write() throws IOException {

    String hostname = "localhost";
    int port = 3456;
    MessagePack pack = new MessagePack();
    byte[] bytes = pack.write(Arrays.asList(hostname, port));
    byte[] result = pack.write(new InetSocketAddress(hostname, port), SocketAddressTemplate.getInstance());
    Assert.assertArrayEquals(bytes, result);
}