BytesSerialiser implements ToBytesSerialiser<byte[]> { @Override public boolean canHandle(final Class clazz) { return byte[].class.equals(clazz) || Byte[].class.equals(clazz); }  @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final byte[] value); @Override byte[] deserialise(final byte[] bytes); @Override byte[] deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void cantSerialiseLongClass() { assertFalse(serialiser.canHandle(Long.class)); }
@Test public void canSerialiseByteArrayClass() { assertTrue(serialiser.canHandle(byte[].class)); }