@Test
public void updateMergeRequestWithInvalidJsonTest() {

    Response response = target().path("merge-requests/" + encode(request1.getResource().stringValue()))
            .request()
            .put(Entity.json("['test': true]"));
    verify(requestManager, never()).updateMergeRequest(eq(request1.getResource()), any(MergeRequest.class));
    assertEquals(response.getStatus(), 400);
}