public void removeEntry(String id) {
        UrlWhitelist modified = removeEntry(getWhitelist(), id);
        saveWhitelist(modified);
    }
@Test
    public void removeEntry() {
        final WhitelistEntry entry = LiteralWhitelistEntry.create("a", "a", "a");
        final UrlWhitelist whitelist = UrlWhitelist.createEnabled(Collections.singletonList(entry));
        assertThat(urlWhitelistService.removeEntry(whitelist, null)).isEqualTo(whitelist);
        assertThat(urlWhitelistService.removeEntry(whitelist, "b")).isEqualTo(whitelist);
        assertThat(urlWhitelistService.removeEntry(whitelist, "a")).isEqualTo(
                UrlWhitelist.createEnabled(Collections.emptyList()));
    }