private void assertEqualsJson(final String expected, final String actual) {
final ObjectMapper mapper = new ObjectMapper();
try {
@SuppressWarnings("unchecked")
final
Map<String, Object> exNode = mapper.readValue(expected, Map.class),
acNode = mapper.readValue(actual, Map.class);
assertEquals(exNode, acNode);
} catch (final Exception e) {
throw new IllegalStateException(e);
}