@GET
    @Path("/{logger}")
    @Operation(summary = "Get the log level for the specified logger")
    public Response getLogger(final @PathParam("logger") String namedLogger) {
        Objects.requireNonNull(namedLogger, "require non-null name");

        LoggerLevel loggerLevel = herder.loggerLevel(namedLogger);
        if (loggerLevel == null)
            throw new NotFoundException("Logger " + namedLogger + " not found.");

        return Response.ok(loggerLevel).build();
    }
@Test
    public void testGetLevel() {
        final String logger = "org.apache.kafka.producer";
        final LoggerLevel expectedLevel = new LoggerLevel(Level.WARN.toString(), 976L);
        when(herder.loggerLevel(logger)).thenReturn(expectedLevel);

        Response response = loggingResource.getLogger(logger);
        assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
        LoggerLevel actualLevel = (LoggerLevel) response.getEntity();

        assertEquals(
                expectedLevel,
                actualLevel
        );
    }