### Question:
ZkDomainGroup extends AbstractDomainGroup implements DomainGroup { public boolean delete() throws IOException { try { zk.deleteNodeRecursively(path); return true; } catch (Exception e) { throw new IOException(e); } } ZkDomainGroup(final ZooKeeperPlus zk,
                       final Coordinator coordinator,
                       final String path);  ZkDomainGroup(final ZooKeeperPlus zk,
                       final Coordinator coordinator,
                       final String path,
                       final boolean create,
                       final DomainGroupMetadata initialMetadata); static ZkDomainGroup create(final ZooKeeperPlus zk,
                                     final Coordinator coordinator,
                                     final String rootPath,
                                     final String name); @Override String getName(); @Override Set<DomainAndVersion> getDomainVersions(); @Override void setDomainVersions(final Map<Domain, Integer> domainVersions); @Override void setDomainVersion(final Domain domain, final int versionNumber); @Override void mergeDomainVersions(final Map<Domain, Integer> domainVersions); @Override void removeDomain(final Domain domain); @Override void addListener(final DomainGroupListener listener); @Override void removeListener(DomainGroupListener listener); boolean delete(); @Override String toString(); String getPath();  }### Answer:
@Test public void testDelete() throws Exception { ZkDomainGroup dg = ZkDomainGroup.create(getZk(), null, domainGroupsRoot, "dg"); assertNotNull(getZk().exists(dg.getPath(), false)); assertTrue(dg.delete()); assertNull(getZk().exists(dg.getPath(), false)); }