### Question:
CouchDbRepositorySupport implements GenericRepository<T> { public void remove(T entity) { assertEntityNotNull(entity); db.delete(Documents.getId(entity), Documents.getRevision(entity)); } protected  CouchDbRepositorySupport(Class<T> type, CouchDbConnector db); protected  CouchDbRepositorySupport(Class<T> type, CouchDbConnector db, boolean createIfNotExists); protected  CouchDbRepositorySupport(Class<T> type, CouchDbConnector db, String designDocName); protected  CouchDbRepositorySupport(Class<T> type, CouchDbConnector db, String designDocName, boolean createIfNotExists); void add(T entity); List<T> getAll(); T get(String id); T get(String id, Options options); T get(String id, String rev); void remove(T entity); void update(T entity); void initStandardDesignDocument(); boolean contains(String docId); void setDesignDocumentFactory(
			DesignDocumentFactory df); static final String AUTO_UPDATE_VIEW_ON_CHANGE; }### Answer:
@Test public void remove_should_delete_doc_in_db() { doReturn(null).when(db).delete("docid", "rev"); TestDoc td = new TestDoc("docid", "f"); td.setRevision("rev"); repo.remove(td); verify(db).delete(eq("docid"), eq("rev")); }