@Test
public void shouldUpdateStateWhenItemCheckedChanged() throws Exception {

    Task task = new Task();
    long taskId = 1L;
    task.setId(taskId);
    presenter.onTaskItemCheckedChanged(task, true);
    verify(repository).updateTaskState(taskId, true);
}