protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
        if (ObjectHelper.isEmpty(remaining)) {
            throw new IllegalArgumentException("Database name must be specified.");
        }

        final ArangoDbConfiguration configurationClone
                = this.configuration != null ? this.configuration.copy() : new ArangoDbConfiguration();
        configurationClone.setDatabase(remaining);
        ArangoDbEndpoint endpoint = new ArangoDbEndpoint(uri, this, configurationClone);
        endpoint.setArangoDB(arangoDB);
        endpoint.setVertx(vertx);
        setProperties(endpoint, parameters);
        return endpoint;
    }
@Test
    public void testRouteWithNoDatabaseName() {
        ArangoDbComponent component = context.getComponent("arangodb", ArangoDbComponent.class);
        assertThrows(IllegalArgumentException.class, () -> component
                .createEndpoint("arangodb?documentCollection=myCollection"));
    }