@SuppressWarnings("javadoc")
@Test
public final void testStreamsFromUrls() throws URISyntaxException, IOException {

	// Get the test sig-def files from the resource directory 
	List<URL> custSigUrls = new ArrayList<URL>();
	for (File csFile : AllFidgetTests.getCustomSigTestFile()) {
		custSigUrls.add(csFile.toURI().toURL());
	}
	// OK going to collect the 64K hashes in order
	List<String> sigUrlHashes = new ArrayList<String>();
	for (URL sigUrl : custSigUrls) {
		InputStream urlStr = sigUrl.openStream();
		sigUrlHashes.add(TikaIdentifier.hash64K(urlStr));
		urlStr.close();
	}
	// Now convert to an array of Streams using streamsFromFiles()
	InputStream[] custSigStreams = TikaResourceHelper.streamsFromUrls(custSigUrls);
	// And again get the hashes
	List<String> sigStrHashes = new ArrayList<String>();
	for (InputStream sigStr : custSigStreams) {
		sigStrHashes.add(TikaIdentifier.hash64K(sigStr));
	}
	// Make sure we got something
	assertTrue("Expected some test data", sigStrHashes.size() > 0);
	// Check that the lists are equal
	assertTrue("Hash lists should be equal", sigUrlHashes.equals(sigStrHashes));
}