JsonNodeSerializer implements Serializer<String, JsonNode> { @Override public JsonNode deserializeValue(byte[] value) throws SerializationException { try { return mapper.readTree(value); } catch (IOException e) { throw new SerializationException(e); } }  @Override String deserializeKey(byte[] key); @Override JsonNode deserializeValue(byte[] value); @Override byte[] serializeKey(String key); @Override byte[] serializeValue(JsonNode value);  }
@Test public void deserializeValue() { JsonNode result = underTest.deserializeValue(valueBytes); assertThat(result, is(value)); }