@Test
public void empty_line_headline_empty_line_empty_line() {

    /* prepare */
    String line = "\n== headline\n\n\n";
    
    /* execute */
    List<AsciidocFormatBlock> result = scannerToTest.scan(line);
    
    /* test */
    assertNotNull(result);
    assertEquals(4,result.size());
    Iterator<AsciidocFormatBlock> iterator = result.iterator();
    AsciidocFormatBlock n = iterator.next();
    assertEquals("\n", n.source.toString());
    assertEquals(AsciidocBlockType.EMPTY_LINE, n.blockType);
    
    n = iterator.next();
    assertEquals("== headline\n", n.source.toString());
    assertEquals(AsciidocBlockType.HEADLINE, n.blockType);
    
    n = iterator.next();
    assertEquals("\n", n.source.toString());
    assertEquals(AsciidocBlockType.EMPTY_LINE, n.blockType);
    
    n = iterator.next();
    assertEquals("\n", n.source.toString());
    assertEquals(AsciidocBlockType.EMPTY_LINE, n.blockType);

    assertSourcesAddedLikeOrigin(result,line);
}