@Test
public void shouldNotDeleteYoungStats() {
Calendar underTwoWeeksAgo = TimeHelper.getTimeAgo(8 * 24 * 60 * 60 * 1000);
jdbc.update("insert into hdfs_stats (created_at) values (?)", underTwoWeeksAgo);
Thread testStatsCleaner = new Thread(new HdfsStatsCleaner(database), "Hdfs Stats Cleaner Test Thread");
testStatsCleaner.start();
try {
testStatsCleaner.join();
} catch (InterruptedException e) {
fail("The test QueriesCleaner failed while waiting for it to finish!");