Assert.assertEquals("there should be exactly two version",2,list2.size());
Assert.assertEquals("contents of version differ", version2, list2.get(1));
connection.commit();
connection.removeVersion(version1.getId());
connection.commit();
// check if listVersions now gives exactly two versions
List<Version> list3 = Iterations.asList(connection.listVersions());
Assert.assertEquals("there should be exactly one version",1,list3.size());