// Init process
FrameAddressResolver frameAddressResolver = new FrameAddressResolver();
Properties runtimeProperties = new Properties();
Repository repository = new Repository();
LongneckProcess process = new LongneckProcess();
// Init blocks
CloneRecord clBlock = new CloneRecord();
List<Block> blocks = new ArrayList<Block>();
blocks.add(clBlock);
process.setBlocks(blocks);
// Set test cases
TestCase testCase = new TestCase();
RecordImplForTest sourceRecord = new RecordImplForTest();
sourceRecord.setRole("source");
sourceRecord.add(new Field("id", "42"));
testCase.addRecord(sourceRecord);
RecordImplForTest targetRecord = new RecordImplForTest();
targetRecord.setRole("target");
targetRecord.add(new Field("id", "42"));
testCase.addRecord(targetRecord);
RecordImplForTest targetRecord2 = new RecordImplForTest();
targetRecord2.setRole("target");
targetRecord2.add(new Field("id", "42"));
testCase.addRecord(targetRecord2);
List<TestCase> testCases = new ArrayList<TestCase>();
testCases.add(testCase);
process.setTestCases(testCases);
CompactProcess cProcess = new CompactProcess(process, repository,
frameAddressResolver, runtimeProperties);
ProcessTester tester = new ProcessTester(cProcess, true);