### Question:
HankApiHelper { protected RingGroupData getRingGroupData(RingGroup ringGroup) throws IOException { RingGroupData data = new RingGroupData(); data.name = ringGroup.getName(); data.isRingGroupConductorOnline = ringGroup.isRingGroupConductorOnline(); data.ringGroupConductorMode = ringGroup.getRingGroupConductorMode(); data.domainGroupName = ringGroup.getDomainGroup().getName(); ServingStatus servingStatus = RingGroups.computeServingStatusAggregator(ringGroup, ringGroup.getDomainGroup()).computeServingStatus(); data.numPartitions = servingStatus.getNumPartitions(); data.numPartitionsServedAndUpToDate = servingStatus.getNumPartitionsServedAndUpToDate(); Map<Integer, RingData> ringsMap = new HashMap<Integer, RingData>(); for (Ring ring : ringGroup.getRings()) { ringsMap.put(ring.getRingNumber(), getRingData(ring)); } data.ringsMap = ringsMap; data.clients = Maps.newHashMap(); for (ClientMetadata clientData : ringGroup.getClients()) { data.clients.put(clientData.get_host(), new ConnectedHostData( clientData.get_host(), Long.toString(clientData.get_connected_at()), clientData.get_type(), clientData.get_version() )); } return data; } HankApiHelper(Coordinator coordinator); DomainData getDomainData(String domainName);  }### Answer:
@Test public void testGetRingGroupData() throws Exception { HankApiHelper.RingGroupData data = helper.getRingGroupData(coordinator.getRingGroup(ZkMockCoordinatorTestCase.RING_GROUP_0)); assertEquals(ZkMockCoordinatorTestCase.RING_GROUP_0, data.name); assertEquals(0, data.numPartitions); assertEquals(3, data.ringsMap.size()); }