@Test
public void updateGroupTest() {

    Response response = target().path("groups/testGroup")
            .request()
            .put(Entity.entity(groupedModelToString(group.getModel(), getRDFFormat("jsonld"), transformer),
                    MediaType.APPLICATION_JSON_TYPE));
    assertEquals(response.getStatus(), 200);
    verify(engineManager).retrieveGroup(ENGINE_NAME, "testGroup");
    verify(engineManager).updateGroup(eq(ENGINE_NAME), any(Group.class));
}