ObjectMapper objectMapper = new ObjectMapper();
ObjectNode node = objectMapper.createObjectNode();
node.put(propertyName, jsonValue.toString());
Object pojo = objectMapper.treeToValue(node, classWithFormattedProperties);
Method getter = new PropertyDescriptor(propertyName, classWithFormattedProperties).getReadMethod();
assertThat(getter.invoke(pojo).toString(), is(equalTo(javaValue.toString())));