@Test
public void createBranchCommitTest() {

    Response response = target().path("catalogs/" + encode(LOCAL_IRI) + "/records/" + encode(RECORD_IRI)
            + "/branches/" + encode(BRANCH_IRI) + "/commits")
            .queryParam("message", "Message").request().post(Entity.entity("", MediaType.TEXT_PLAIN));
    assertEquals(response.getStatus(), 201);
    assertEquals(response.readEntity(String.class), COMMIT_IRIS[0]);
    verify(versioningManager).commit(eq(vf.createIRI(LOCAL_IRI)), eq(vf.createIRI(RECORD_IRI)), eq(vf.createIRI(BRANCH_IRI)), any(User.class), eq("Message"));
}