@Test(expected = RuntimeException.class)
public void deserializeThrowsException() throws Exception {

  doThrow(JsonProcessingException.class).when(objectWriter).writeValueAsBytes(patch);
  underTest.serialize("topic", patch);
}