@Test
public void shouldListErrors() throws Exception {

    // when
    final String errors = when().get("/preparations/errors").asString();
    final ObjectMapper mapper = new ObjectMapper();
    final JsonNode actualErrorCodes = mapper.readTree(errors);
    // then
    assertTrue(actualErrorCodes.isArray());
    assertTrue(actualErrorCodes.size() > 0);
    for (final JsonNode currentCode : actualErrorCodes) {
        assertTrue(currentCode.has("code"));
        assertTrue(currentCode.has("http-status-code"));
    }
}