	@Test
	public void testMatcher1() throws SequenceException {

		String patternStr = "There_w are_w CD_p [B-NP_n I-NP_n]+ (IN_p [B-NP_n I-NP_n]+)*";
		LayeredTokenPattern pat = new LayeredTokenPattern(patternStr);
		LayeredTokenMatcher m = pat.matcher(seq);
		assertTrue(m.find());
		assertEquals(0, m.start());
		assertEquals(6, m.end());
	}