### Question:
ToolGroupManager implements SecuredEntityManager { @Override @Transactional(propagation = Propagation.REQUIRED) public ToolGroup changeOwner(Long id, String owner) { ToolGroup group = load(id); group.setOwner(owner); toolGroupDao.updateToolGroup(group); return group; }  @Transactional(propagation = Propagation.REQUIRED) ToolGroup create(final ToolGroup group); @Transactional(propagation = Propagation.REQUIRED) ToolGroup updateToolGroup(final ToolGroup toolGroup); @Transactional(propagation = Propagation.REQUIRED) ToolGroup delete(final String id, final boolean force); List<ToolGroup> loadByRegistryId(Long registryId); List<ToolGroup> loadByRegistryNameOrId(String registry); ToolGroup loadPrivate(Long registryId); ToolGroupWithIssues loadToolsWithIssuesCount(Long id); @Transactional(propagation = Propagation.REQUIRED) ToolGroup createPrivate(Long registryId); @Override ToolGroup load(Long id); @Override @Transactional(propagation = Propagation.REQUIRED) ToolGroup changeOwner(Long id, String owner); @Override AclClass getSupportedClass(); @Override ToolGroup loadByNameOrId(String identifier); @Override Integer loadTotalCount(); @Override Collection<? extends AbstractSecuredEntity> loadAllWithParents(Integer page, Integer pageSize); @Override ToolGroup loadWithParents(final Long id); ImmutablePair<String, String> getGroupAndTool(String repository); ToolGroup loadToolGroupByImage(String registry, String image); boolean doesToolGroupExist(String registryName, String groupName); boolean isGroupPrivate(ToolGroup group); static Pair<String, String> getPrefixAndName(String identifier);  }### Answer:
@Test @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) public void testChangeOwner() { ToolGroup group = createToolGroup(); toolGroupManager.changeOwner(group.getId(), TEST_OTHER_USER); ToolGroup loaded = toolGroupManager.load(group.getId()); Assert.assertEquals(TEST_OTHER_USER, loaded.getOwner()); }