	@Test
	public void testUndo() throws Exception {

		byte[] orig = "Hello World".getBytes();
		byte[] target = "Hellish Cruel World".getBytes();
		
		byte[] diff = ByteArrayDiffs.diff(orig, target);
		
		byte[] undone = ByteArrayDiffs.undo(target, diff);
		
		Assert.assertTrue(Arrays.equals(orig, undone));
	}