// Optimize here to have a predictable order of the patch lines.
final List<PatchLine> diff = RdfPatchUtil.diff(orig, repository, true);
Assert.assertEquals("Wrong patch size", 3, diff.size());
Assert.assertThat("Wrong patch", diff, IsIterableContainingInOrder.contains(
new PatchLine(PatchLine.Operator.DELETE, new WildcardStatement(bob, FOAF.KNOWS, charlie)),
new PatchLine(PatchLine.Operator.ADD, new WildcardStatement(null, null, alice)),
new PatchLine(PatchLine.Operator.ADD, new WildcardStatement(charlie, FOAF.MBOX, mbox))
));
}