DateTime now = new DateTime();
DateTime dateMinus1 = now.minusHours(1);
DateTime dateMinus2 = now.minusHours(2);
Airport airport = TestFixture.getValidAirport(0);
airport.setLastUpdated(now);
long id1 = repo.persist(airport);
Airport airport2 = TestFixture.getValidAirport(0);
airport2.setLastUpdated(dateMinus2);
repo.persist(airport2);
assertEquals("All airports", 2, repo.getAllAirports().size());
int noOfDeletes = repo.deleteAirportsOlderThan(dateMinus1);