@Test
public void testWriteTag() throws IOException {

    assertThat(of().write(DIV).writer.toString()).isEqualTo("<div/>");
    assertThat(of().write(DIV, "content").writer.toString()).isEqualTo("<div>content</div>");
    assertThat(of().write(DIV, "content", NO_CLASS).writer.toString()).isEqualTo("<div>content</div>");
    assertThat(of().write(DIV, "content", HELLO_CLASS).writer.toString()).isEqualTo("<div class=\"hello\">content</div>");
}