CloudantInstanceCreator extends AbstractServiceConnectorCreator<CouchDbInstance, CloudantServiceInfo> { @Override public CouchDbInstance create(CloudantServiceInfo serviceInfo, ServiceConnectorConfig serviceConnectorConfig) { HttpClient httpClient; try { httpClient = new StdHttpClient.Builder() .url(serviceInfo.getUrl()) .build(); return new StdCouchDbInstance(httpClient); } catch (MalformedURLException e) { LOG.logp(Level.WARNING, CloudantInstanceCreator.class.getName(), "create", "Error parsing URL", e); return null; } }  @Override CouchDbInstance create(CloudantServiceInfo serviceInfo,
            ServiceConnectorConfig serviceConnectorConfig);  }
@Test public void testCreate() { final CloudantServiceInfo badUrlServiceInfo = new CloudantServiceInfo( "id", "username", "password", "hostname", 443, "url" ); assertNull(creator.create(badUrlServiceInfo, new ServiceConnectorConfig() { })); final CloudantServiceInfo serviceInfo = new CloudantServiceInfo( "testId", "username", "password", "username.cloudant.com", 443, "https: ); assertTrue(creator.create(serviceInfo, new ServiceConnectorConfig() { }) instanceof CouchDbInstance); }