@Override
    protected CouchbaseEndpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
        CouchbaseEndpoint endpoint = new CouchbaseEndpoint(uri, remaining, this);
        setProperties(endpoint, parameters);
        return endpoint;
    }
@Test
    public void testCouchbaseURIWithBucket2() throws Exception {
        Map<String, Object> params = new HashMap<>();
        params.put("bucket", "bucket");
        String uri = "couchbase:http://localhost";
        String remaining = "http://localhost";

        CouchbaseComponent couchbaseComponent = new CouchbaseComponent(context);
        CouchbaseEndpoint endpoint = couchbaseComponent.createEndpoint(uri, remaining, params);

        assertEquals(new URI("http://localhost:8091/pools"), endpoint.makeBootstrapURI()[0]);
        assertEquals("bucket", endpoint.getBucket());
    }