r.add(new Field("b", "bbb"));
r.add(new Field("c", "ccc"));
r.add(new Field("d", "ddd"));
// Add variable scope
VariableSpace scope = new VariableSpace();
scope.setVariable("e", "eee");
scope.setVariable("f", "fff");
scope.setVariable("g", "ggg");
scope.setVariable("h", "hhh");
// Perform copy
copy.apply(r, scope);
assertEquals("hhh", scope.getVariable("e"));
assertEquals("hhh", scope.getVariable("f"));
assertEquals("ggg", scope.getVariable("g"));
}