public boolean equals(byte[] that)
    {
        return Arrays.equals(data, that);
    }
@Test
    public void testEquals()
    {
        ZData data = new ZData("test".getBytes(ZMQ.CHARSET));
        ZData other = new ZData("test".getBytes(ZMQ.CHARSET));

        assertThat(data.equals(other), is(true));
    }