### Question:
WordMetadata { public List<WordMetadata.WordHeading> getHeadings() { return headings; }  List<WordMetadata.WordHeading> getHeadings(); void setHeadings( List<WordMetadata.WordHeading> headings );  }### Answer:
@Test public void shouldBeAbleToParseHeadingsForWord() throws Exception { wordMetadata = WordMetadataReader.instance(this.getTestDocument("word.doc")); List<WordMetadata.WordHeading> headings = wordMetadata.getHeadings(); assertThat(headings.size(), is(TEST_HEADERS_TEXT.length)); for (int i = 0; i < headings.size(); i++) { assertThat(headings.get(i).getText(), is(TEST_HEADERS_TEXT[i])); assertThat(headings.get(i).getHeaderLevel(), is(TEST_HEADERS_LEVEL[i])); } }