### Question:
JcrConnectorProvider extends BaseJcrProvider<Connector, Connector.ID> implements ConnectorProvider { @Override public Optional<Connector> findByPlugin(String pluginId) { String query = startBaseQuery().append(" WHERE [").append(JcrConnector.PLUGIN_ID).append("] = '").append(pluginId).append("'").toString(); return Optional.ofNullable(findFirst(query)); }  @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="testDelete") public void testFindByPlugin() { metadata.read(() -> { Optional<Connector> conn = this.connectorProvider.findByPlugin("plugin1"); assertThat(conn).isNotNull().isPresent(); assertThat(conn.get()).extracting("pluginId", "systemName", "title", "description").contains("plugin1", "test_1_connector", "Test 1 Connector", "Test description 1"); }, MetadataAccess.SERVICE); }