@Test
public void deserialize() throws IOException {

  byte[] data = new byte[] { 0 };
  when(objectWriter.writeValueAsBytes(patch)).thenReturn(data);
  byte[] result = underTest.serialize("topic", patch);
  assertThat(result, is(data));
}