### Question:
JcrConnectorProvider extends BaseJcrProvider<Connector, Connector.ID> implements ConnectorProvider { @Override public Optional<Connector> find(ID id) { return Optional.ofNullable(findById(id)); }  @Override ID resolveId(Serializable fid); @Override Connector create(String pluginId, String title); @Override List<Connector> findAll(boolean includeInactive); @Override Optional<Connector> find(ID id); @Override Optional<Connector> findByPlugin(String pluginId); @Override Class<? extends JcrEntity<?>> getJcrEntityClass(); @Override String getNodeType(Class<? extends JcrObject> jcrEntityType); static final Path CATALOG_PATH; static final Path CONNECTORS_PATH; }### Answer:
@Test(dependsOnMethods="testCreate") public void testDelete() { metadata.commit(() -> { this.connectorProvider.deleteById(this.testId); }, MetadataAccess.SERVICE); metadata.read(() -> { Optional<Connector> conn = this.connectorProvider.find(this.testId); assertThat(conn).isNotNull().isNotPresent(); }, MetadataAccess.SERVICE); }