@Test
public void read() throws IOException {

    String host = "localhost";
    int port = 3456;
    MessagePack pack = new MessagePack();
    byte[] bytes = pack.write(Arrays.asList(host, port));
    SocketAddress result = pack.read(bytes, SocketAddressTemplate.getInstance());
    Assert.assertThat(result, new IsInstanceOf(InetSocketAddress.class));
    Assert.assertEquals(host, ((InetSocketAddress) result).getHostName());
    Assert.assertEquals(port, ((InetSocketAddress) result).getPort());
}