@Test
public void testDelete() {

    metadata.commit(() -> {
        this.dataSetProvider.deleteById(this.dSetIds.get(0));
        this.dataSetProvider.deleteById(this.dSetIds.get(1));
    }, MetadataAccess.SERVICE);
    
    metadata.read(() -> {
        Optional<DataSet> ds0 = this.dataSetProvider.find(this.dSetIds.get(0));
        Optional<DataSet> ds1 = this.dataSetProvider.find(this.dSetIds.get(1));
        
        assertThat(ds0).isNotNull().isNotPresent();
        assertThat(ds1).isNotNull().isNotPresent();
    }, MetadataAccess.SERVICE);
}