Add some more unit tests for diffs in Java.