@Test
public void updateCommentWithInvalidCommentSizeTest() {

    doThrow(new IllegalArgumentException()).when(requestManager).updateComment(any(Resource.class), any(Comment.class));
    Response response = target().path("merge-requests/" + encode(request1.getResource().stringValue()) + "/comments/"
            + encode(comment1.getResource().stringValue()))
            .request()
            .put(Entity.text(largeComment));
    ArgumentCaptor<Comment> commentArgumentCaptor = ArgumentCaptor.forClass(Comment.class);
    verify(requestManager).updateComment(eq(comment1.getResource()), commentArgumentCaptor.capture());
    Comment comment = commentArgumentCaptor.getValue();
    assertNotEquals(comment.getProperty(vf.createIRI(_Thing.description_IRI)), Optional.empty());
    assertEquals(comment.getProperty(vf.createIRI(_Thing.description_IRI)).get().stringValue(), largeComment);
    assertEquals(response.getStatus(), 400);
}