@Test
public void createReplyCommentRequestDoesNotExistTest() {

    doThrow(new MobiException()).when(requestManager).createComment(eq(request1.getResource()), any(User.class), anyString(), eq(comment1.getResource()));
    Response response = target().path("merge-requests/" + encode(request1.getResource().stringValue()) + "/comments")
            .queryParam("commentId", comment1.getResource().stringValue())
            .request().post(Entity.text(commentText));
    assertEquals(response.getStatus(), 500);
    verify(engineManager, atLeastOnce()).retrieveUser(UsernameTestFilter.USERNAME);
    verify(requestManager).createComment(eq(request1.getResource()), any(User.class), anyString(), eq(comment1.getResource()));
}