### Question:
ExtensionStore { public Map<String, String> getExtensionResources(final String extensionName) throws StoreAccessException { Map<String, String> extensionFileMap = new HashMap<>(); try { Path extensionPath = new Path(storePath, extensionName.toLowerCase()); Path resourcesPath = null; FileStatus[] files = fs.listStatus(extensionPath); for (FileStatus fileStatus : files) { if (fileStatus.getPath().getName().equalsIgnoreCase(RESOURCES_DIR)) { resourcesPath = fileStatus.getPath(); break; } } if (resourcesPath == null) { throw new StoreAccessException(" For extension " + extensionName + " there is no " + RESOURCES_DIR + "at the extension store path " + storePath); } RemoteIterator<LocatedFileStatus> fileStatusListIterator = fs.listFiles(resourcesPath, true); while (fileStatusListIterator.hasNext()) { LocatedFileStatus fileStatus = fileStatusListIterator.next(); Path filePath = Path.getPathWithoutSchemeAndAuthority(fileStatus.getPath()); extensionFileMap.put(filePath.getName(), filePath.toString()); } } catch (IOException e) { throw new StoreAccessException(e); } return extensionFileMap; } private  ExtensionStore(); static ExtensionMetaStore getMetaStore(); static ExtensionStore get(); Map<String, String> getExtensionResources(final String extensionName); String getExtensionLibPath(final String extensionName); String getExtensionResource(final String resourcePath); String deleteExtension(final String extensionName, String currentUser); String registerExtension(final String extensionName, final String path, final String description,
                                    String extensionOwner); String getResource(final String extensionResourcePath); Path getExtensionStorePath(); boolean isExtensionStoreInitialized(); String updateExtensionStatus(final String extensionName, String currentUser, ExtensionStatus status);  }### Answer:
@Test public void testGetExtensionResources() throws StoreAccessException { String extensionName = new HdfsMirroringExtension().getName(); Map<String, String> resources = store.getExtensionResources(extensionName); for (Map.Entry<String, String> entry : resources.entrySet()) { String path = resourcesMap.get(entry.getKey()); Assert.assertEquals(entry.getValue(), path); } }