String motif = "TCTG";
Strand strand = Strand.POSITIVE;
Iterator<Feature> matchIter = MotifFinderSource.searchSingleStrand(motif, strand, null, posStart, shortSeq.getBytes());
assertTrue("No matches found for motif " + motif, matchIter.hasNext());
Feature feat = matchIter.next();
assertEquals(posStart + 3, feat.getStart());
assertEquals(posStart + 7, feat.getEnd());
checkPatternMatches(motif, feat, shortSeq.getBytes());
feat = matchIter.next();
assertEquals(posStart + 14, feat.getStart());
assertEquals(posStart + 18, feat.getEnd());
checkPatternMatches(motif, feat, shortSeq.getBytes());
assertFalse(matchIter.hasNext());
}