private void performBAMListFileUnpackingTest( File tempListFile, List<SAMReaderID> expectedUnpackedFileList ) throws Exception {
List<String> bamFiles = new ArrayList<String>();
bamFiles.add(tempListFile.getAbsolutePath());
CommandLineGATK testInstance = new CommandLineGATK();
testInstance.setParser(new ParsingEngine(testInstance));
List<SAMReaderID> unpackedBAMFileList = ListFileUtils.unpackBAMFileList(bamFiles,new ParsingEngine(testInstance));
Assert.assertEquals(unpackedBAMFileList.size(), expectedUnpackedFileList.size(),
"Unpacked BAM file list contains extraneous lines");
Assert.assertEquals(unpackedBAMFileList, expectedUnpackedFileList,
"Unpacked BAM file list does not contain correct BAM file names");