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

Code:
    void greetingShouldReturn404() throws Exception {
        assertThat(restTemplate.getForEntity("http://localhost:" + httpPort + JETTY_BASE_PATH + "/greet",
                                             Void.class)
                               .getStatusCode().value()).isEqualByComparingTo(404);
    }