### Question:
RxtUnboundedDataLoadUtils { public static Map<String, List<String>> getRxtData(UserRegistry userRegistry) throws RegistryException { String[] paths = getRxtPathLists(userRegistry); Map<String, List<String>> RxtDetails = new ConcurrentHashMap<>(); for (String path : paths) { String rxtContent = RegistryUtils.decodeBytes((byte[]) userRegistry.get(path).getContent()); RxtUnboundedEntryBean rxtUnboundedEntryBean = getRxtUnboundedEntries(rxtContent); String mediaType = rxtUnboundedEntryBean.getMediaType(); List<String> unboundedFields = rxtUnboundedEntryBean.getFields(); if (mediaType != null && unboundedFields.size() > 0) { RxtDetails.put(rxtUnboundedEntryBean.getMediaType(), rxtUnboundedEntryBean.getFields()); } } return RxtDetails; }  static Map<String, List<String>> getRxtData(UserRegistry userRegistry); static RxtUnboundedEntryBean getRxtUnboundedEntries(String rxtContent); static boolean isMultiValueField(String mediaType, String fieldKey);  }### Answer:
@Test public void getRxtData() throws Exception { Map<String, List<String>> rxtData = RxtUnboundedDataLoadUtils.getRxtData(userRegistry); assertNotNull(rxtData); assertTrue(rxtData.containsKey("application/vnd.wso2-restservice+xml")); String[] expectedFieldArray = new String[] {"uritemplate_urlPattern", "uritemplate_httpVerb", "uritemplate_authType", "contacts_entry", "endpoints_entry"}; List<String> unboundFieldList = rxtData.get("application/vnd.wso2-restservice+xml"); String[] actualFieldArray = new String[unboundFieldList.size()]; actualFieldArray = unboundFieldList.toArray(actualFieldArray); assertArrayEquals(expectedFieldArray, actualFieldArray); }