@Test
public void testDelete() {

    metadata.commit(() -> {
        this.dsProvider.deleteById(this.dsId);
    }, MetadataAccess.SERVICE);
    
    metadata.read(() -> {
        Optional<DataSource> ds = this.dsProvider.find(this.dsId);
        
        assertThat(ds).isNotNull().isNotPresent();
    }, MetadataAccess.SERVICE);
}