br2.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b1:1", 3, 3, 0));
far.put(br2);
br2.setId("pkg1:b2");
br2.setVersion("1");
Mapping mapping1 = new Mapping();
Map map1 = new Map();
map1.setTo("d");
map1.setFrom("b");
mapping1.addRule(map1);
Map map11 = new Map();
map11.setTo("c");
map11.setFrom("f");
mapping1.addRule(map11);
br2.setMapping(mapping1);
Set b1set2 = new Set();
b1set2.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b1:1", 4, 4, 0));
far.put(b1set2);
b1set2.setApplyTo("a");
b1set2.setValue("error");
CloneRecord b1clone = new CloneRecord();
b1clone.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b1:1", 5, 5, 0));
far.put(b1clone);
b1clone.setFieldName("b");
b1clone.setFieldValue("b3");
b1.setBlocks(Arrays.asList(new Block[]{b1set, br2, b1set2, b1clone}));
// Block 2
GenericBlock b2 = new GenericBlock();
b2.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", null, 6, 6, 0));
b2.setId("b2");
b2.setVersion("1");
Set b2set = new Set();
b2set.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b2:1", 7, 7, 0));
far.put(b2set);
b2set.setApplyTo("e");
b2set.setValue("b2");
Copy b2copy = new Copy();
b2copy.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b2:1", 8, 8, 0));
far.put(b2copy);
b2copy.setApplyTo("d");
b2copy.setFrom("e");
Set b2set2 = new Set();
b2set2.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b2:1", 9, 9, 0));
far.put(b2set2);
b2set2.setApplyTo("b");
b2set2.setValue("error");
Set b2set3 = new Set();
b2set3.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b2:1", 10, 10, 0));
far.put(b2set2);
b2set3.setApplyTo("a");
b2set3.setValue("error");
Set b2set4 = new Set();
b2set4.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b2:1", 11, 11, 0));
far.put(b2set4);
b2set4.setApplyTo("c");
b2set4.setValue("ok");
CloneRecord b2clone = new CloneRecord();
b2clone.setSourceInfo(new SourceInfo("file:///pkg1.blocks.xml", "b1:1", 12, 12, 0));
far.put(b2clone);
b2.setBlocks(Arrays.asList(new Block[]{b2set, b2copy, b2set2, b2set3, b2set4, b2clone}));
br2.setReferredBlock(b2);
BlockReference br1 = new BlockReference();
br1.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 2, 2, 0));
far.put(br1);
br1.setId("pkg1:b1");
br1.setVersion("1");
Mapping mapping0 = new Mapping();
Map map0 = new Map();
map0.setTo("b");
map0.setFrom("a");
mapping0.addRule(map0);
Map map01 = new Map();
map01.setTo("f");
map01.setFrom("c");
mapping0.addRule(map01);
br1.setMapping(mapping0);
br1.setReferredBlock(b1);
seq.setBlocks(Arrays.asList(new Block[]{br1}));