### Question:
ToolGroupManager implements SecuredEntityManager { @Transactional(propagation = Propagation.REQUIRED) public ToolGroup updateToolGroup(final ToolGroup toolGroup) { Assert.notNull(toolGroup.getId(), messageHelper.getMessage(MessageConstants.ERROR_PARAMETER_NULL_OR_EMPTY, "id")); ToolGroup old = toolGroupDao.loadToolGroup(toolGroup.getId()).orElseThrow(() -> new IllegalArgumentException( messageHelper.getMessage(MessageConstants.ERROR_TOOL_GROUP_NOT_FOUND, toolGroup.getId()))); old.setDescription(toolGroup.getDescription()); toolGroupDao.updateToolGroup(old); return old; }  @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 testUpdateToolGroup() { ToolGroup group = createToolGroup(); ToolGroup original = toolGroupManager.load(group.getId()); group.setDescription(TEST_OTHER_DESCRIPTION); group.setName("foo"); group.setOwner("bar"); group.setRegistryId(0L); toolGroupManager.updateToolGroup(group); ToolGroup updated = toolGroupManager.load(group.getId()); Assert.assertEquals(TEST_OTHER_DESCRIPTION, updated.getDescription()); Assert.assertEquals(original.getName(), updated.getName()); Assert.assertEquals(original.getOwner(), updated.getOwner()); Assert.assertEquals(original.getRegistryId(), updated.getRegistryId()); }