@Override
    public void doStart() throws Exception {
        if (!pluginConfigService.config().getCurrent().spamhausEnabled()) {
            throw new AdapterDisabledException("Spamhaus service is disabled, not starting (E)DROP adapter. To enable it please go to System / Configurations.");
        }
        final ImmutableMap.Builder<String, Map<SubnetUtils.SubnetInfo, String>> builder = ImmutableMap.builder();
        for (String list : lists) {
            final Map<SubnetUtils.SubnetInfo, String> subnetMap = fetchSubnetsFromEDROPLists(list);
            if (subnetMap != null) {
                builder.put(list, subnetMap);
            }
        }
        this.subnets.set(builder.build());
    }
@Test
    public void tableStateShouldRetrieveListsSuccessfully() throws Exception {
        when(httpFileRetriever.fetchFileIfNotModified("https://www.spamhaus.org/drop/drop.txt")).thenReturn(Optional.of(dropSnapshot));
        when(httpFileRetriever.fetchFileIfNotModified("https://www.spamhaus.org/drop/edrop.txt")).thenReturn(Optional.of(edropSnapshot));
        adapter.doStart();

        verifyAdapterFunctionality(adapter);
    }