@Test
public void getMergeRequestsWithMissingRepoTest() {

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