### Question:
HankApiHelper { protected DomainGroupData getDomainGroupData(DomainGroup domainGroup) throws IOException { DomainGroupData data = new DomainGroupData(); data.name = domainGroup.getName(); Map<String, Integer> versionsMap = new HashMap<String, Integer>(); for (DomainAndVersion v : domainGroup.getDomainVersions()) { versionsMap.put(v.getDomain().getName(), v.getVersionNumber()); } data.domainVersions = versionsMap; return data; } HankApiHelper(Coordinator coordinator); DomainData getDomainData(String domainName);  }### Answer:
@Test public void testGetDomainGroupData() throws Exception { HankApiHelper.DomainGroupData data = helper.getDomainGroupData(coordinator.getDomainGroup(ZkMockCoordinatorTestCase.DOMAIN_GROUP_0)); assertEquals(ZkMockCoordinatorTestCase.DOMAIN_GROUP_0, data.name); assertNotNull(data.domainVersions); assertEquals(1, (int)data.domainVersions.get(ZkMockCoordinatorTestCase.DOMAIN_0)); assertEquals(1, (int)data.domainVersions.get(ZkMockCoordinatorTestCase.DOMAIN_1)); }