### Question:
UserAlertGroupService extends ServiceImpl<UserAlertGroupMapper, UserAlertGroup> { boolean deleteByAlertGroupId(Integer groupId) { return userAlertGroupMapper.deleteByAlertgroupId(groupId) >= 1; }    }### Answer:
@Test public void deleteByAlertGroupId() { Integer groupId = 1; userAlertGroupService.deleteByAlertGroupId(groupId); ArgumentCaptor<Integer> argumentCaptor = ArgumentCaptor.forClass(Integer.class); Mockito.verify(userAlertGroupMapper).deleteByAlertgroupId(argumentCaptor.capture()); assertEquals(argumentCaptor.getValue(), groupId); }