// name is mangled on creation - "$name - ($method)"
assertThat(privilege.name(), is(saved.name()));
assertThat(privilege.methods(), contains("read"));
assertThat(privilege.repositoryGroupId(), is("public"));
assertThat(privilege.targetId(), is(targetId));
}
@Test(expected = IllegalStateException.class)
public void refuseCreateAlreadyExistingPrivilege() {
final String targetId = createRepoTarget("refuseCreatePrivileges").id();