@Test
public void testParseArchive() throws Exception {

	String path = "/test-documents/testISATab_BII-I-1/s_BII-S-1.txt";
	
	Parser parser = new ISArchiveParser(ISArchiveParserTest.class.getResource("/test-documents/testISATab_BII-I-1/").toURI().getPath());
	//Parser parser = new AutoDetectParser();
	
	ContentHandler handler = new BodyContentHandler();
	Metadata metadata = new Metadata();
	ParseContext context = new ParseContext();
	try (InputStream stream = ISArchiveParserTest.class.getResourceAsStream(path)) {
		parser.parse(stream, handler, metadata, context);
	}
	
	// INVESTIGATION
	assertEquals("Invalid Investigation Identifier", "BII-I-1", metadata.get("Investigation Identifier"));
	assertEquals("Invalid Investigation Title", "Growth control of the eukaryote cell: a systems biology study in yeast", metadata.get("Investigation Title"));
	
	// INVESTIGATION PUBLICATIONS
	assertEquals("Invalid Investigation PubMed ID", "17439666", metadata.get("Investigation PubMed ID")); 
	assertEquals("Invalid Investigation Publication DOI", "doi:10.1186/jbiol54", metadata.get("Investigation Publication DOI"));
	
	// INVESTIGATION CONTACTS
	assertEquals("Invalid Investigation Person Last Name", "Oliver", metadata.get("Investigation Person Last Name")); 
	assertEquals("Invalid Investigation Person First Name", "Stephen", metadata.get("Investigation Person First Name"));
}