    @Test
    public void createEditTodoActionTest() {

        final AtomicBoolean testDone = new AtomicBoolean(false);

        actionBus.register(new Object() {
            @Subscribe
            public void addTodo(TodoAction action) {
                assertThat(action.getData().get(TodoAction.DataKeys.ID, -1)).isEqualTo(10);
                assertThat(action.getData().get(TodoAction.DataKeys.DESCRIPTION, "")).isEqualTo("New Description");
                testDone.set(true);
            }
        });

        actionCreator.createEditTodoAction(10, "New Description");

        while (!testDone.get()) ;
    }