@Test
public void testCreateSequences() throws Exception {

    StringBuilder sb = new StringBuilder();
    sb.append(">foo\n");
    sb.append("actg\n");
    sb.append(">bar\n");
    sb.append("gtca\n");
    int count = 0;
    for (Sequence sequence : createSequences(new BufferedReader(new StringReader(sb.toString())))) {
        assertTrue("actg".equals(sequence.getValue()) || "gtca".equals(sequence.getValue()));
        count++;
    }
    assertEquals(2, count);
}