@Test
	public void testIOFastaQualityFactory() {
		String input1 = name + ".fasta";
		String input2 = name + ".qual";
		FileSequenceIOFactory fact = null;

		File res1 = testFile(input1);
		File res2 = testFile(input2);

		try {
			fact = FileSequenceIOFactory.getFactory(new FileInputStream(res1),
					new FileInputStream(res2));
		} catch (FileNotFoundException e) {
			fail(String.format("%s or %s not found", res1.toString(),
					res2.toString()));
		}

		assertEquals(fact.getClass(), FileSequenceIOFastaQualityFactory.class);

		FileSequenceReader reader = fact.createReader();

		SequenceCounter count = new SequenceCounter();
		reader.addListener(count);
		try {
			reader.readAllSequence();
		} catch (IOException e) {
			fail("I/O error occurs during testing");
		} catch (FileFormatException e) {
			String error = String.format(
					"FileFormatException in fasta + qual test file: %s",
					e.getMessage());
			System.out.println(error);
			fail(error);
		}

		assertEquals(count.numSeq, 10);
	}