}
@Test
public void testBalancedCaptureNested3()
{
CapturingGroup group = ParseTools.balancedCapture("(one(two)(three(four(five))))".toCharArray(), 9, 28,
CaptureType.PAREN);
Assert.assertEquals(27, group.getEnd());
Assert.assertArrayEquals("three(four(five))".toCharArray(), group.getCaptured());
}