@Test
public void testGetMetadata() {

    final MetadataElement manifestElement = manifest.getMetadata();
    assertNotNull(manifestElement);
    assertEquals("Manifest", manifestElement.getName());
    assertEquals(0, manifestElement.getNumAttributes());
    assertEquals(1, manifestElement.getNumElements());
    final MetadataElement headerElement = manifestElement.getElement("Earth_Explorer_Header");
    assertNotNull(headerElement);
    assertEquals(2, headerElement.getNumElements());
    final MetadataElement fixedHeaderElement = headerElement.getElement("Fixed_Header");
    assertNotNull(fixedHeaderElement);
    assertEquals(7, fixedHeaderElement.getNumAttributes());
    assertEquals("TEST", fixedHeaderElement.getAttributeString("File_Class"));
    MetadataElement validityPeriodElement = fixedHeaderElement.getElement("Validity_Period");
    assertNotNull(validityPeriodElement);
    assertEquals(2, validityPeriodElement.getNumAttributes());
}