@Override
    public HttpResponse handle(HttpRequest request) {
        final List<String> uris = circularArrayAccessLogKeeper.getUris();

        return new HttpResponse(200) {
            @Override
            public void render(OutputStream outputStream) throws IOException {

                JsonGenerator generator = jsonFactory.createGenerator(outputStream);
                generator.writeStartObject();
                generator.writeArrayFieldStart("entries");
                for (String uri : uris) {
                    generator.writeStartObject();
                    generator.writeStringField("url", uri);
                    generator.writeEndObject();
                }
                generator.writeEndArray();
                generator.writeEndObject();
                generator.close();
            }
        };
    }
@Test
    void testOneLogLine() throws IOException {
        keeper.addUri("foo");
        HttpResponse response = handler.handle(null);
        response.render(out);
        assertEquals("{\"entries\":[{\"url\":\"foo\"}]}", out.toString());
    }