@Test
	public void testIOFastqFactory() {
		String input = name + ".fastq";
		FileSequenceIOFactory fact = null;

		File res = testFile(input);

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

		assertEquals(fact.getClass(), FileSequenceIOFastqFactory.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) {
			fail("FileFormatException in test file");
		}

		assertEquals(count.numSeq, 10);
	}