public String toString() {
        verifyState(State.FINALIZED);
        return builder.toString();
    }
@Test
    void testStructure() {
        HttpWriter writer = new HttpWriter();
        String header = defaultHeader.replace(defaultTitle, "Untitled page");
        assertEquals(header + defaultFooter, writer.toString());
    }