DiffInstruction instruction = getDiffInstruction();
DiffOperation diffOperation = new DiffOperation(new ExampleSerializerFactory(), instruction);
/// perform the diff report
DiffReport diffReport = diffOperation.performDiff(fromStateEngine, toStateEngine);
/// this score can be used as a quick overview to see the magnitude of the differences between the data states
System.out.println("Total Differences Between Matched Objects: " + diffReport.getTotalDiffs());
/// this score can be used as a quick overview to see the number of unmatched objects between the data states
System.out.println("Total Unmatched Objects: " + diffReport.getTotalExtra());