### Question:
UserManager { @Transactional(propagation = Propagation.REQUIRED) public GroupStatus upsertGroupBlockingStatus(final String groupName, final boolean blockStatus) { final GroupStatus groupStatus = new GroupStatus(groupName, blockStatus); return groupStatusDao.upsertGroupBlockingStatusQuery(groupStatus); }  @Transactional(propagation = Propagation.REQUIRED) PipelineUser createUser(String name, List<Long> roles,
                                   List<String> groups, Map<String, String> attributes,
                                   Long defaultStorageId); @Transactional(propagation = Propagation.REQUIRED) PipelineUser createUser(PipelineUserVO userVO); UserContext loadUserContext(String name); JwtRawToken issueToken(final String userName, final Long expiration); PipelineUser loadUserByName(String name); @Transactional(propagation = Propagation.REQUIRED) List<PipelineUser> loadUsersByNames(Collection<String> names); PipelineUser loadUserById(Long id); Collection<PipelineUser> loadAllUsers(); List<UserInfo> loadUsersInfo(); Collection<PipelineUserWithStoragePath> loadAllUsersWithDataStoragePath(); @Transactional(propagation = Propagation.REQUIRED) PipelineUser deleteUser(Long id); @Transactional(propagation = Propagation.REQUIRED) PipelineUser updateUser(Long id, List<Long> roles); @Transactional(propagation = Propagation.REQUIRED) PipelineUser updateUserFirstLoginDate(Long id, LocalDateTime firstLoginDate); @Transactional(propagation = Propagation.REQUIRED) PipelineUser updateUser(Long id, PipelineUserVO userVO); @Transactional(propagation = Propagation.REQUIRED) PipelineUser updateUserBlockingStatus(final Long id, final boolean blockStatus); @Transactional(propagation = Propagation.REQUIRED) GroupStatus upsertGroupBlockingStatus(final String groupName, final boolean blockStatus); @Transactional(propagation = Propagation.REQUIRED) GroupStatus deleteGroupBlockingStatus(final String groupName); List<GroupStatus> loadAllGroupsBlockingStatuses(); List<GroupStatus> loadGroupBlockingStatus(final List<String> groupNames); @Transactional(propagation = Propagation.REQUIRED) PipelineUser updateUserSAMLInfo(Long id, String name, List<Long> roles, List<String> groups,
                                           Map<String, String> attributes); PipelineUser loadUserByNameOrId(String identifier); List<CustomControl> getUserControls(); List<PipelineUser> findUsers(String prefix); List<String> findGroups(String prefix); Collection<PipelineUser> loadUsersByGroup(String group); boolean checkUserByGroup(String userName, String group); Collection<PipelineUser> loadUsersByDeafultStorage(final Long storageId); PipelineUser getCurrentUser(); boolean needToUpdateUser(List<String> groups, Map<String, String> attributes,
            PipelineUser user); byte[] exportUsers(final PipelineUserExportVO attr);  }### Answer:
@Test @Transactional(propagation = Propagation.REQUIRES_NEW) public void createGroupStatus() { Assert.assertNotNull(userManager.upsertGroupBlockingStatus(TEST_GROUP_NAME_1, false)); Assert.assertFalse(getGroupStatus(TEST_GROUP_NAME_1).isBlocked()); }
@Test @Transactional(propagation = Propagation.REQUIRES_NEW) public void updateGroupStatus() { userManager.upsertGroupBlockingStatus(TEST_GROUP_NAME_1, false); Assert.assertFalse(getGroupStatus(TEST_GROUP_NAME_1).isBlocked()); userManager.upsertGroupBlockingStatus(TEST_GROUP_NAME_1, true); Assert.assertTrue(getGroupStatus(TEST_GROUP_NAME_1).isBlocked()); userManager.upsertGroupBlockingStatus(TEST_GROUP_NAME_1, false); Assert.assertFalse(getGroupStatus(TEST_GROUP_NAME_1).isBlocked()); }