BytesSerialiser implements ToBytesSerialiser<byte[]> { @Override public byte[] deserialiseEmpty() { return new byte[0]; }  @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 @Override public void shouldDeserialiseEmpty() throws SerialisationException { final byte[] value = serialiser.deserialiseEmpty(); assertEquals(0, value.length); }