### Question:
ToolGroupDao extends NamedParameterJdbcDaoSupport { @Transactional(propagation = Propagation.MANDATORY) public void deleteToolGroup(Long id) { getJdbcTemplate().update(deleteToolGroupQuery, id); }  @Transactional(propagation = Propagation.MANDATORY) void createToolGroup(ToolGroup group); @Transactional(propagation = Propagation.SUPPORTS) List<ToolGroup> loadToolGroups(); @Transactional(propagation = Propagation.SUPPORTS) List<ToolGroup> loadToolGroupsByNameAndRegistryName(String groupName, String registryName); @Transactional(propagation = Propagation.SUPPORTS) List<ToolGroup> loadToolGroups(Long registryId); @Transactional(propagation = Propagation.SUPPORTS) Optional<ToolGroup> loadToolGroup(Long id); @Transactional(propagation = Propagation.SUPPORTS) Optional<ToolGroup> loadToolGroup(String name, Long registryId); @Transactional(propagation = Propagation.MANDATORY) void deleteToolGroup(Long id); @Transactional(propagation = Propagation.MANDATORY) void updateToolGroup(ToolGroup toolGroup); @Required void setToolGroupSequenceName(String toolGroupSequenceName); @Required void setCreateToolGroupQuery(String createToolGroupQuery); @Required void setLoadToolGroupQuery(String loadToolGroupQuery); @Required void setLoadAllToolGroupsQuery(String loadAllToolGroupsQuery); @Required void setLoadToolGroupsByRegistryIdQuery(String loadToolGroupsByRegistryIdQuery); @Required void setDeleteToolGroupQuery(String deleteToolGroupQuery); @Required void setLoadToolGroupByNameAndRegistryIdQuery(String loadToolGroupByNameAndRegistryIdQuery); @Required void setUpdateToolGroupQuery(String updateToolGroupQuery); @Required void setLoadToolGroupsByNameAndRegistryNameQuery(String loadToolGroupsByNameAndRegistryNameQuery);  }### Answer:
@Test @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) public void deleteToolGroup() { ToolGroup group = saveToolGroup(TEST_GROUP_NAME, registry); toolGroupDao.deleteToolGroup(group.getId()); Assert.assertTrue(toolGroupDao.loadToolGroups().stream().noneMatch(g -> g.getId().equals(group.getId()))); }