### Question:
TaskStore { public void update(Task task) { this.tx(session -> { session.update(task); return null; }); }  boolean delete(final int id); void add(Task task); void update(Task task); List<Task> findAll(); Task findById(int id);  }### Answer:
@Test public void update() { this.test.add(this.second); int taskId = this.findTaskId(this.second); Task updatedTask = this.first; this.first.setId(taskId); this.test.update(updatedTask); assertThat(this.test.findById(taskId), is(this.first)); }