@Test
public void getMergeRequestsTest() {

    Response response = target().path("merge-requests").request().get();
    assertEquals(response.getStatus(), 200);
    verify(requestManager).getMergeRequests(any(MergeRequestFilterParams.class));
    try {
        JSONArray result = JSONArray.fromObject(response.readEntity(String.class));
        assertEquals(result.size(), 1);
        JSONObject requestObj = result.getJSONObject(0);
        assertFalse(requestObj.containsKey("@graph"));
        assertTrue(requestObj.containsKey("@id"));
        assertEquals(requestObj.getString("@id"), request1.getResource().stringValue());
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}