public void testScope2() throws Exception {
result.sampleStart();
result.setResponseData("<title>PARENT</title>", "ISO-8859-1");
result.sampleEnd();
SampleResult child1 = new SampleResult();
child1.sampleStart();
child1.setResponseData("<title>ONE</title>", "ISO-8859-1");
child1.sampleEnd();
result.addSubResult(child1);
SampleResult child2 = new SampleResult();
child2.sampleStart();
child2.setResponseData("<title>TWO</title>", "ISO-8859-1");
child2.sampleEnd();
result.addSubResult(child2);
SampleResult child3 = new SampleResult();
child3.sampleStart();
child3.setResponseData("<title>THREE</title>", "ISO-8859-1");
child3.sampleEnd();
result.addSubResult(child3);
extractor.setScopeParent();
extractor.setTemplate("$1$");
extractor.setMatchNumber(1);
extractor.setRegex("<title>([^<]+)<");