### Question:
JcrConnectorProvider extends BaseJcrProvider<Connector, Connector.ID> implements ConnectorProvider { @Override public Connector create(String pluginId, String title) { String systemName = generateSystemName(title); Path connPath = MetadataPaths.connectorPath(systemName); if (JcrUtil.hasNode(getSession(), connPath)) { throw ConnectorAlreadyExistsException.fromSystemName(systemName); } else { Node connNode = JcrUtil.createNode(getSession(), connPath, JcrConnector.NODE_TYPE); JcrConnector conn = JcrUtil.createJcrObject(connNode, JcrConnector.class, pluginId); conn.setTitle(title); conn.setActive(true); if (this.accessController.isEntityAccessControlled()) { final List<SecurityRole> roles = roleProvider.getEntityRoles(SecurityRole.CONNECTOR); actionsProvider.getAvailableActions(AllowedActions.CONNECTOR) .ifPresent(actions -> conn.enableAccessControl((JcrAllowedActions) actions, JcrMetadataAccess.getActiveUser(), roles)); } else { actionsProvider.getAvailableActions(AllowedActions.CONNECTOR) .ifPresent(actions -> conn.disableAccessControl(JcrMetadataAccess.getActiveUser())); } return conn; } }  @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 public void testCreate() { this.testId = metadata.commit(() -> { Connector conn = null; for (int i = 1; i <= COUNT + 1; i++) { conn = createConnector(Integer.toString(i)); } return conn.getId(); }, MetadataAccess.SERVICE); metadata.read(() -> { Optional<Connector> conn = this.connectorProvider.find(this.testId); assertThat(conn).isNotNull().isPresent(); assertThat(conn.get()).extracting("pluginId", "systemName", "title", "description").contains(connectorTuple(COUNT + 1).toArray()); }, MetadataAccess.SERVICE); }