### Question:
HelpBuildUtils { public static ImageLocation locateImageReference(Path sourceFile, String ref) throws URISyntaxException { if (Icons.isIconsReference(ref)) { IconProvider iconProvider = Icons.getIconForIconsReference(ref); if (iconProvider == null || iconProvider.isInvalid()) { return ImageLocation.createInvalidRuntimeLocation(sourceFile, ref); } URL url = iconProvider.getUrl(); URI resolved = null; Path path = null; if (url != null) { resolved = url.toURI(); path = toPath(resolved); } return ImageLocation.createRuntimeLocation(sourceFile, ref, resolved, path); } URI resolved = resolve(sourceFile, ref); if (isRemote(resolved)) { return ImageLocation.createRemoteLocation(sourceFile, ref, resolved); } Path path = createPathFromURI(sourceFile, resolved); return ImageLocation.createLocalLocation(sourceFile, ref, resolved, path); } private  HelpBuildUtils(); static HelpModuleLocation toLocation(File file); static Path getRoot(Collection<Path> roots, Path file); static Path getHelpTopicDir(Path file); static Path getFile(Path srcFile, String relativePath); static Path relativizeWithHelpTopics(Path p); static Path relativize(Path parent, Path child); static void cleanupHelpFileLinks(Path helpFile); static void debug(String text); static Path toDefaultFS(Path path); static Path toFS(Path targetFS, Path path); static Path createReferencePath(URI fileURI); static boolean isRemote(String uriString); static boolean isRemote(Path path); static boolean isRemote(URI uri); static ImageLocation locateImageReference(Path sourceFile, String ref); static Path locateReference(Path sourceFile, String ref); static boolean debug; }### Answer:
@Test public void testLocateReferences_Icons_BadName() throws URISyntaxException { Path sourceFile = Paths.get(HTML_FILE_PATH); String reference = "Icons.REFRESH_ICON_BAD"; ImageLocation location = HelpBuildUtils.locateImageReference(sourceFile, reference); Path resolved = location.getResolvedPath(); assertNull(resolved); }