blocks.add(snBlock);
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", null));
testCase.addRecord(targetRecord);
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);
assertTrue(tester.testAll());
// Add a test that fails
TestCase testCase2 = new TestCase();
RecordImplForTest sourceRecord2 = new RecordImplForTest();
sourceRecord2.setRole("source");
sourceRecord2.add(new Field("id", "42"));
testCase2.addRecord(sourceRecord2);
RecordImplForTest targetRecord2 = new RecordImplForTest();
targetRecord2.setRole("target");
targetRecord2.add(new Field("id", "42"));
testCase2.addRecord(targetRecord2);
testCases.add(testCase2);
assertFalse(tester.testAll());
}