### Question:
Groups { public void deleteGroup(Group group, ACS acs) throws SQLException { checkPermission(group, acs); for (GroupParameter gp : group.getGroupParameters().getGroupParameters()) { group.getGroupParameters().deleteGroupParameter(gp, acs); } deleteGroupImpl(group, acs); removeGroupFromDataModel(group); } Groups(Map<Integer, Group> idMap, Map<String, Group> nameMap, Unittype unittype); Group getById(Integer id); Group getByName(String name); Group[] getGroups(); @Override String toString(); void addOrChangeGroup(Group group, ACS acs); List<Group> getTopLevelGroups(); void deleteGroup(Group group, ACS acs); Unittype getUnittype();  }### Answer:
@Test public void deleteGroup() throws SQLException { String unittypeName = "Test unittype"; String groupName = "Group name"; String profileName = "Default"; Unittype unittype = TestUtils.createUnittype(unittypeName, acs); Group group = TestUtils.createGroupAndVerify(groupName, profileName, unittype, acs); unittype.getGroups().deleteGroup(group, acs); assertEquals(0, unittype.getGroups().getGroups().length); }