### Question:
RenameGroup extends AbstractNISOp { public static void renameGroup(SolarisEntry group, SolarisConnection conn) { String newGroupName = getNewGroupRename(group); if (newGroupName == null) { return; } if (!conn.isNis()) { invokeNativeRename(group, conn); } else { invokeNISRename(group, conn); } }  static void renameGroup(SolarisEntry group, SolarisConnection conn);  }### Answer:
@Test public void testRenameGroup() { String groupName = getGroupName(); AssertJUnit.assertTrue(String.format("group '%s' is missing.", groupName), searchForGroup(groupName)); String newName = "newconngrp"; RenameGroup.renameGroup(new SolarisEntry.Builder(groupName).addAttr(NativeAttribute.NAME, newName).build(), getConnection()); try { AssertJUnit.assertTrue(String.format("group '%s' is missing.", newName), searchForGroup(newName)); } finally { getFacade().delete(ObjectClass.GROUP, new Uid(newName), null); } }