DatabaseConnector extends StdCouchDbConnector { public <T> boolean add(T document) { try { super.create(document); return true; } catch (UpdateConflictException e) { log.warn("Update conflict exception while adding object!", e); return false; } catch (IllegalArgumentException e) { log.warn("Illegal argument exception while adding document", e); return false; } } DatabaseConnector(HttpClient httpClient, String dbName);  DatabaseConnector(Supplier<HttpClient> httpClient, String dbName);  DatabaseConnector(HttpClient httpClient, String dbName, MapperFactory mapperFactory); private  DatabaseConnector(String dbName, DatabaseInstance instance, MapperFactory mapperFactory); Optional<Status> restrictAccessToAdmins(); boolean add(T document); T get(Class<T> type, String id); List<T> get(Class<T> type, Collection<String> ids, boolean ignoreNotFound); List<T> get(Class<T> type, Collection<String> ids); @Override void update(Object document); boolean contains(String id); boolean deleteById(String id); String getDbName(); DatabaseInstance getInstance(); List<DocumentOperationResult> deleteIds(Collection<String> ids, Class<T> type);  }
@Test public void testAddDocument2() throws Exception { assertFalse(connector.add(object)); }