    @Test
    public void testSelectAllGetsUncheckedWhenAnItemAreUncompleted() {

        itemStore.getItems().add(item1);
        itemStore.getItems().add(item2);
        itemStore.getItems().add(item3);

        item1.setCompleted(true);
        item2.setCompleted(true);
        item3.setCompleted(true);

        FxTestingUtils.waitForUiThread();
        assertThat(viewModel.allSelectedProperty().get()).isTrue();

        // when
        item1.setCompleted(false);
        FxTestingUtils.waitForUiThread();


        // then
        assertThat(viewModel.allSelectedProperty().get()).isFalse();
    }