### Question:
SparkArgsExtractor { @VisibleForTesting Collection<String> decodeUriPaths(final Collection<URI> uris) { if (uris == null || uris.isEmpty()) { return new ArrayList<>(); } final Collection<String> result = new ArrayList<>(uris.size()); for (final URI uri : uris) { final String uriString = uri.toString(); if (!uri.getPath().equals(uri.getRawPath())) { result.add(uriString.replace(uri.getRawPath(), uri.getPath())); } else { result.add(uriString); } } return result; } SparkArgsExtractor(final Configuration actionConf);   }### Answer:
@Test public void testIfUrisAreDecoded() { final SparkArgsExtractor extractor = new SparkArgsExtractor(new Configuration()); final Collection<String> result = extractor.decodeUriPaths(Arrays.asList( new Path(LOCAL_FILE).toUri(), new Path(HDFS_FILE).toUri() )); assertTrue(result + " shall contain " + LOCAL_FILE, result.contains(LOCAL_FILE)); assertTrue(result + " shall contain " + HDFS_FILE, result.contains(HDFS_FILE)); }
@Test public void testDecodeUriPathsNullInput() { assertTrue("In case providing empty or null input, empty list shall be returned", new SparkArgsExtractor(new Configuration()).decodeUriPaths(null).isEmpty()); }