@Test
public void testBlocksInheritDocData() {

    assertThat(doclist).isNotNull();
    assertThat(doclist.getStmtDocs()).hasSize(2);
    StmtsDoc doc1 = doclist.getStmtDocs().get(0);
    assertThat(doc1.getBlocks()).hasSize(1);
    StmtsBlock doc1block0 = doc1.getBlocks().get(0);
    assertThat(doc1.getTags()).isEqualTo(doc0tags);
    assertThat(doc1.getBindings()).isEqualTo(doc0bindings);
    assertThat(doc1.getParams()).isEqualTo(doc0params);
    assertThat(doc1block0.getName()).isEqualTo("doc1--block0");
    assertThat(doc1block0.getBindings()).containsExactly(MapEntry.entry("b2","b2d"),MapEntry.entry("b1","b1d"));
    assertThat(doc1block0.getParams()).containsExactly(MapEntry.entry("param1","value1"));
    assertThat(doc1block0.getTags()).containsExactly(MapEntry.entry("atagname","atagvalue"));
}