### Question:
CouchDbRepositorySupport implements GenericRepository<T> { public void update(T entity) { assertEntityNotNull(entity); db.update(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 update_should_update_db() { TestDoc td = new TestDoc("docid", "f"); doNothing().when(db).update(td); repo.update(td); verify(db).update(eq(td)); }