Paragraph { public String getText() { return text; } Paragraph();  Paragraph(String text); boolean hasText(); String getText(); void setText(String text); @Override String toString(); String toHtml();  }
@Test public void testDefaultConstructor() { assertNull(new Paragraph().getText()); }
@Test public void testConstructorWithArguments() { assertEquals("foo",new Paragraph("foo").getText()); }