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

	// Get the test sig-def files from the resource directory 
	List<File> custSigFileLst = new ArrayList<File>(AllFidgetTests.getCustomSigTestFile());
	File[] custSigFiles = custSigFileLst.toArray(new File[custSigFileLst.size()]);
	// OK going to collect the 64K hashes in order
	List<String> sigFileHashes = new ArrayList<String>();
	for (File sigFile : custSigFiles) {
		FileInputStream fis = new FileInputStream(sigFile);
		sigFileHashes.add(TikaIdentifier.hash64K(fis));
		fis.close();
	}
	// Now convert to an array of Streams using streamsFromFiles()
	InputStream[] custSigStreams = TikaResourceHelper.streamsFromFiles(custSigFiles);
	// 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", sigFileHashes.equals(sigStrHashes));
}