@Test
public void getCommentTest() {

    Response response = target().path("merge-requests/" + encode(request1.getResource().stringValue()) + "/comments/"
            + encode(comment1.getResource().stringValue())).request().get();
    assertEquals(response.getStatus(), 200);
    verify(requestManager).getMergeRequest(request1.getResource());
    verify(requestManager).getComment(comment1.getResource());
    try {
        JSONObject result = JSONObject.fromObject(response.readEntity(String.class));
        assertEquals(result.getString("@id"), comment1.getResource().stringValue());
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}