Language: Java
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
    void shouldReturnFormattedMessage(String path, int status, String message) throws Exception {
        final ResponseEntity<String> response =
                restTemplate.getForEntity(jettyBaseUrlPath(port) + path, String.class);
        assertThat(response.getStatusCode()).isEqualTo(HttpStatus.valueOf(status));
        assertThatJson(response.getBody()).node("status").isEqualTo(status);
        assertThatJson(response.getBody()).node("message").isEqualTo(message);
    }