    @Test
    public void getMergeRequestsWithErrorTest() {

        // Setup
        doThrow(new MobiException()).when(requestManager).getMergeRequests(any(MergeRequestFilterParams.class));

        Response response = target().path("merge-requests").request().get();
        assertEquals(response.getStatus(), 500);
        verify(requestManager).getMergeRequests(any(MergeRequestFilterParams.class));
    }