StructuralByteArray { public StructuralByteArray(byte[] value) { this.value = value; } StructuralByteArray(byte[] value); byte[] getValue(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testStructuralByteArray() throws Exception { assertEquals( new StructuralByteArray("test string".getBytes(Charsets.UTF_8)), new StructuralByteArray("test string".getBytes(Charsets.UTF_8))); assertFalse( new StructuralByteArray("test string".getBytes(Charsets.UTF_8)) .equals(new StructuralByteArray("diff string".getBytes(Charsets.UTF_8)))); }