verify(identityServiceMock, never()).newGroup(MockProvider.EXAMPLE_GROUP_ID);
}
@Test
public void testReadOnlyGroupUpdateFails() {
Group groupUdpdate = MockProvider.createMockGroup();
when(identityServiceMock.isReadOnly()).thenReturn(true);
given()
.pathParam("id", MockProvider.EXAMPLE_GROUP_ID)
.body(GroupDto.fromGroup(groupUdpdate)).contentType(ContentType.JSON)