    @Test
    public void testGetEffects() throws Exception {

        BootErrorCollector instance = new BootErrorCollector();
        BootErrorCollector.ListBootErrorsHandler handler = (BootErrorCollector.ListBootErrorsHandler) instance.getReadBootErrorsHandler();
        assertThat(handler, is(notNullValue()));
        OperationEntry entry = createOperationEntry(true, false);
        Set<Action.ActionEffect> effects = handler.getEffects(entry);
        assertThat(effects.size(), is(3));
        assertThat(effects, hasItems(ADDRESS, READ_CONFIG, READ_RUNTIME));
        entry = createOperationEntry(true, true);
        effects = handler.getEffects(entry);
        assertThat(effects.size(), is(2));
        assertThat(effects, hasItems(ADDRESS, READ_RUNTIME));
        entry = createOperationEntry(false, false);
        effects = handler.getEffects(entry);
        assertThat(effects.size(), is(5));
        assertThat(effects, hasItems(ADDRESS, READ_CONFIG, READ_RUNTIME, WRITE_CONFIG, WRITE_RUNTIME));
        entry = createOperationEntry(false, true);
        effects = handler.getEffects(entry);
        assertThat(effects.size(), is(3));
        assertThat(effects, hasItems(ADDRESS, READ_RUNTIME, WRITE_RUNTIME));
    }