@Test
public void equals() {

    ByteValue a = new ByteValue(((byte) 0x1));
    ByteValue b = new ByteValue(((byte) 0x1));
    ByteValue c = new ByteValue(((byte) 0x2));
    byte array[] = {(byte) 0x1};
    assertThat(a.equals(a), is(true));
    assertThat(a.equals(b), is(true));
    assertThat(a.equals(c), is(false));
    assertThat(a.equals(1), is(false));
    assertThat(a.equals((byte) 1), is(false));
    assertThat(a.equals(array), is(false));
}