@Override
    public void printContent(StringBuilder sb) {
        if (failedParsing || json == null) {
            super.printContent(sb);
        }
        else {
            sb.append("JSON: ");
            sb.append(json.toPrettyString());
        }
    }
@Test
    void testNonJsonOutput() {
        JsonHttpResult result = new JsonHttpResult();
        result.setContent("Foo");
        StringBuilder sb = new StringBuilder();
        result.printContent(sb);
        assertEquals("Foo", sb.toString());
    }