@Test
public void testGetCapturingGroupCount() throws Exception {

    assertEquals(0, new Token("").getCapturingGroupCount());
    assertEquals(1, new Token("a(b)c").getCapturingGroupCount());
    assertEquals(0, new Token("a(?:b)c").getCapturingGroupCount());
}