@Test
public void getCommentsTest() {

    Response response = target().path("merge-requests/" + encode(request1.getResource().stringValue()) + "/comments").request().get();
    assertEquals(response.getStatus(), 200);
    verify(requestManager).getComments(eq(request1.getResource()));
    try {
        JSONArray result = JSONArray.fromObject(response.readEntity(String.class));
        assertEquals(result.size(), 2);
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}