### Question:
TaskStore { public boolean delete(final int id) { boolean result = false; try { this.tx( session -> { session.delete(new Task(id)); return null; } ); result = true; } catch (Exception e) { LOG.error(e.getMessage(), e); } return result; }  boolean delete(final int id); void add(Task task); void update(Task task); List<Task> findAll(); Task findById(int id);  }### Answer:
@Test public void delete() { this.test.add(this.first); int taskId = this.findTaskId(this.first); assertTrue(this.test.delete(taskId)); assertFalse(this.test.delete(taskId)); assertFalse(this.test.findAll().contains(this.first)); }