public void testComplexQuery() throws Exception {
URL ingestUrl = this.getClass().getResource("/ingest");
URL refUrl1 = this.getClass().getResource("/ingest/test-file-1.txt");
URL refUrl2 = this.getClass().getResource("/ingest/test-file-2.txt");
StdIngester ingester = new StdIngester(transferServiceFacClass);
//ingest first file
Metadata prodMet = new Metadata();
prodMet.addMetadata(CoreMetKeys.FILE_LOCATION, new File(
ingestUrl.getFile()).getCanonicalPath());
prodMet.addMetadata(CoreMetKeys.FILENAME, "test-file-1.txt");
prodMet.addMetadata(CoreMetKeys.PRODUCT_NAME, "TestFile1");
prodMet.addMetadata(CoreMetKeys.PRODUCT_TYPE, "GenericFile");
ingester.ingest(new URL("http://localhost:" + FM_PORT), new File(
refUrl1.getFile()), prodMet);
//ingest second file
prodMet.replaceMetadata(CoreMetKeys.FILENAME, "test-file-2.txt");
prodMet.replaceMetadata(CoreMetKeys.PRODUCT_NAME, "TestFile2");
ingester.ingest(new URL("http://localhost:" + FM_PORT), new File(
refUrl2.getFile()), prodMet);
//perform complex query
ComplexQuery complexQuery = new ComplexQuery();
List<String> reducedMetadata = new Vector<String>();