### Question:
GeoPackageDeleter extends DeletableDataGroupInfoAssistant { @Override public void deleteGroup(DataGroupInfo dgi, Object source) { myRegistry.removeModels(new DataModelCategory(dgi.getId(), null, null), false); if (getDeleteListener() != null) { getDeleteListener().packageDeleted(); } super.deleteGroup(dgi, source); } GeoPackageDeleter(MantleToolbox mantleToolbox, DataRegistry dataRegistry, PackageDeleteListener deleteListener); @Override void deleteGroup(DataGroupInfo dgi, Object source);  }### Answer:
@Test public void testDeleteGroup() { EasyMockSupport support = new EasyMockSupport(); DataGroupInfo dataGroup = createDataGroup(support); MantleToolbox mantleToolbox = createMantleToolbox(support, dataGroup); DataRegistry registry = createRegistry(support); PackageDeleteListener deleteListener = support.createMock(PackageDeleteListener.class); deleteListener.packageDeleted(); support.replayAll(); GeoPackageDeleter deleter = new GeoPackageDeleter(mantleToolbox, registry, deleteListener); deleter.deleteGroup(dataGroup, this); support.verifyAll(); }
@Test public void testDeleteGroupNullListener() { EasyMockSupport support = new EasyMockSupport(); DataGroupInfo dataGroup = createDataGroup(support); MantleToolbox mantleToolbox = createMantleToolbox(support, dataGroup); DataRegistry registry = createRegistry(support); support.replayAll(); GeoPackageDeleter deleter = new GeoPackageDeleter(mantleToolbox, registry, null); deleter.deleteGroup(dataGroup, this); support.verifyAll(); }