NullSerialiser implements ToBytesSerialiser<Object> { @Override public Object deserialise(final byte[] bytes) throws SerialisationException { return null; }  @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final Object value); @Override Object deserialise(final byte[] bytes); @Override Object deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test @Override public void shouldSerialiseWithHistoricValues() throws Exception { for (final Pair<Object, byte[]> pair : historicSerialisationPairs) { serialiseFirst(pair); assertNull(serialiser.deserialise(pair.getSecond())); } }