@Test
public void testHasText()
{

    Description desc = new Description();
    desc.setParagraphs(null);
    assertFalse(desc.hasText());
    desc.setParagraphs(paragraphs);
    assertFalse(desc.hasText());
    Paragraph p = new Paragraph();
    assertFalse(p.hasText());
    paragraphs.add(p);
    assertFalse(desc.hasText());
    p.setText("x");
    assertTrue(p.hasText());
    assertTrue(desc.hasText());
}