@Test
public void executeAllExpiredTest() {

    try (RepositoryConnection conn = repo.getConnection()) {
        conn.add(dataset1, vf.createIRI(OntologyDatasets.TIMESTAMP_IRI_STRING), vf.createIRI(OffsetDateTime.now().minusSeconds(10000).toString()));
        conn.add(dataset2, vf.createIRI(OntologyDatasets.TIMESTAMP_IRI_STRING), vf.createIRI(OffsetDateTime.now().minusSeconds(10000).toString()));
    }
    cleanJob.execute(jobContext);
    verify(repoManager).getRepository("ontologyCache");
    verify(datasetManager).safeDeleteDataset(dataset1, "ontologyCache", false);
    verify(datasetManager).safeDeleteDataset(dataset2, "ontologyCache", false);
}