Assert.assertEquals(4, dbPrograms1.size());
Assert.assertEquals("list of original programs differs from list of database",programs,dbPrograms1);
// delete all programs and check if the database does not contain any remaining entries in the different tables
for(Program p : programs) {
connection.deleteProgram(p);
connection.commit();
}
List<Program> dbPrograms2 = asList(connection.listPrograms());
Assert.assertEquals(0, dbPrograms2.size());