public void initializeResources(Herder herder) {
        this.herder = herder;
        super.initializeResources();
    }
@Test
    public void testLoggerEndpointWithDefaults() throws IOException {
        Map<String, String> configMap = new HashMap<>(baseServerProps());

        final String logger = "a.b.c.s.W";
        final String loggingLevel = "INFO";
        final long lastModified = 789052637671L;

        doReturn(KAFKA_CLUSTER_ID).when(herder).kafkaClusterId();
        doReturn(plugins).when(herder).plugins();
        expectEmptyRestExtensions();
        doReturn(Collections.emptyList()).when(herder).setWorkerLoggerLevel(logger, loggingLevel);
        doReturn(Collections.singletonMap(logger, new LoggerLevel(loggingLevel, lastModified))).when(herder).allLoggerLevels();

        server = new ConnectRestServer(null, restClient, configMap);
        server.initializeServer();
        server.initializeResources(herder);

        ObjectMapper mapper = new ObjectMapper();

        URI serverUrl = server.advertisedUrl();

        executePut(serverUrl, "/admin/loggers/" + logger, "{\"level\": \"" + loggingLevel + "\"}");

        String responseStr = executeGet(serverUrl, "/admin/loggers");

        Map<String, Object> expectedLogger = new HashMap<>();
        expectedLogger.put("level", loggingLevel);
        expectedLogger.put("last_modified", lastModified);
        Map<String, Map<String, Object>> expectedLoggers = Collections.singletonMap(logger, expectedLogger);
        Map<String, Map<String, Object>> actualLoggers = mapper.readValue(responseStr, new TypeReference<Map<String, Map<String, Object>>>() { });
        assertEquals(expectedLoggers, actualLoggers);
    }