@Test
public void getMergeRequestWithMissingRepoTest() {

    // Setup:
    doThrow(new IllegalStateException()).when(requestManager).getMergeRequest(request1.getResource());
    Response response = target().path("merge-requests/" + encode(request1.getResource().stringValue())).request().get();
    assertEquals(response.getStatus(), 500);
    verify(requestManager).getMergeRequest(request1.getResource());
}