@Test
public void testTre() throws IOException, NitfFormatException {

  NitfSegmentsFlow nitfSegmentsFlow =
      new NitfParserInputFlowImpl().inputStream(getInputStream(GMTI_TEST_NITF)).allData();
  Metacard metacard = metacardFactory.createMetacard("101");
  nitfSegmentsFlow = nitfHeaderTransformer.transform(nitfSegmentsFlow, metacard);
  metacard = nitfGmtiTransformer.transform(nitfSegmentsFlow, metacard);
  assertNotNull(metacard);
  validateDate(metacard.getCreatedDate(), "2016-06-22 23:39:22");
  validateDate(metacard.getEffectiveDate(), "2016-06-22 23:39:22");
  validateDate(metacard.getModifiedDate(), "2016-06-22 23:39:22");
  assertThat(metacard.getMetacardType().getName(), is("isr.gmti"));
  Map<NitfAttribute, String> mtirpbAttributesMap = initMtirpbAttributes();
  assertMtirpbAttributes(metacard, mtirpbAttributesMap);
}