@Test public void analyze() throws RuleBaseException, TransformException { SortBlock block = define("<sort as='corresponding'>$src</sort>"); setModGlobalScope(content.query()); Seg seg = block.createSeg(mod); seg.analyze(); assertThat(block.requiredVariables, is(collection(new QName(null, "src", null)))); }