### Question:
ChangeLogSet { public void verify(ChangeLogSet model) throws ChecksumInvalidException { verify(model, true); } ChangeLogSet(List<ChangeLog> changeLogs); static ChangeLogSet fromChangesets(List<ChangeSet> changeSets); List<ChangeLog> getChangeLogs(); List<ChangeLog> diff(ChangeLogSet model); List<ChangeLog> prune(Version version); void verify(ChangeLogSet model); void verify(ChangeLogSet model, boolean verifyChecksums);  }### Answer:
@Test public void testVerifyChecksums() throws ChecksumInvalidException { ChangeLogSet set1 = new ChangeLogSet(Arrays.asList(cl1)); ChangeLogSet set2 = new ChangeLogSet(Arrays.asList(cl1, cl2)); set1.verify(set2); }
@Test(expected=ChecksumInvalidException.class) public void testVerifyChecksumsFails() throws Exception { ChangeSet cs1Copy = copy(cs1); cs1Copy.addCommand(new CQLCommand("foo", "foo")); ChangeLog copy = copy(cl1); copy.removeChangeSet(cs1Copy.getIdentifier()); copy.addChangeSet(cs1Copy); ChecksumUtil.updateChecksum(cs1Copy); ChangeLogSet set1 = new ChangeLogSet(Arrays.asList(cl1)); ChangeLogSet set2 = new ChangeLogSet(Arrays.asList(copy, cl2)); set1.verify(set2); }