/**
   * Test of buildReportChunk method, of class PDFDataChunkBuilder. Test case: successfull execution
   * - three dim data content
   */
  @Test
  public void testBuildReportChunkSuccessfull4() {
    dchunk.setContent(thdata);
    instance.buildReportChunk(dchunk, doc, true);

    ArrayList<Object[]> events = docListener.getCapturedEvents();

    // Check that there have been 5 elements added - 5 events
    assertTrue(events.size() == 5);

    // Check the first event - chunk context added as paragraph
    Object[] event = events.get(0);
    confirmParagraphAdded(event, "CONTEXT: ERROR");

    // Check the second event - chunk group added as paragraph
    event = events.get(1);
    confirmParagraphAdded(event, "GROUP: " + group);

    // Check the third event - chunk rule added as paragraph
    event = events.get(2);
    confirmParagraphAdded(event, "RULE: " + rule);

    // Check the fourth event - chunk tags added as paragraph
    event = events.get(3);
    confirmParagraphAdded(event, "TAGS: 'tag1' 'tag2'");

    // Check the fifth event - chunk content (ThreeDimData) added as PdfPTable
    event = events.get(4);
    confirmPdfPTableAdded(event, thdata);
  }
  /**
   * Test of buildReportChunk method, of class PDFDataChunkBuilder. Test case: successfull execution
   * - three dim data content but no chunk headers inserted
   */
  @Test
  public void testBuildReportChunkSuccessfull5() {
    dchunk.setContent(thdata);
    instance.buildReportChunk(dchunk, doc, false);

    ArrayList<Object[]> events = docListener.getCapturedEvents();

    // Check that there has been 1 element added - 1 event
    assertTrue(events.size() == 1);

    // Check the first event - chunk content (ThreeDimData) added as PdfPTable
    Object[] event = events.get(0);
    confirmPdfPTableAdded(event, thdata);
  }