### Question:
ResourceRegistrar { public static Set<String> getResourcesUniqueNames() { final Set<String> names = new HashSet<String>(resources.size()); for (ProducerHolder holder : resources) { if (!holder.isInitialized()) continue; names.add(holder.getUniqueName()); } return Collections.unmodifiableSet(names); } private  ResourceRegistrar(); static XAResourceProducer get(final String uniqueName); static Set<String> getResourcesUniqueNames(); static void register(XAResourceProducer producer); static void unregister(XAResourceProducer producer); static XAResourceHolder findXAResourceHolder(XAResource xaResource); final static Charset UNIQUE_NAME_CHARSET; }### Answer:
@Test public void testGetResourcesUniqueNames() throws Exception { assertArrayEquals(new Object[]{"xa-rp"}, ResourceRegistrar.getResourcesUniqueNames().toArray()); }