@Test
public void createCommentTest() {

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