RawLongSerialiser implements ToBytesSerialiser<Long> { @Override public boolean canHandle(final Class clazz) { return Long.class.equals(clazz); }  @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final Long value); @Override Long deserialise(final byte[] allBytes, final int offset, final int length); @Override Long deserialise(final byte[] bytes); @Override Long deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void cantSerialiseStringClass() { assertFalse(serialiser.canHandle(String.class)); }
@Test public void canSerialiseLongClass() { assertTrue(serialiser.canHandle(Long.class)); }