public static void parseOutputTest(String textToSearch, FileLink... expectedResults) {
parseTest(textToSearch, false, expectedResults);
}
public static void parseTest(String textToSearch, boolean verifyFileExists, FileLink... expectedResults) {
OutputParser outputParser = new OutputParser(new FileLinkDefinitionLord(), verifyFileExists);
List<FileLink> fileLinks = outputParser.parseText(textToSearch);
TestUtility.assertListContents(fileLinks, expectedResults);
}