@Test
public void testCopyInputTransformerAttributes() throws Exception {

  metacard.setContentTypeName("some/thing");
  metacard.setMetadata("the metadata");
  when(streamParser.parse()).thenReturn(Collections.emptyMap());
  MpegTsInputTransformer t =
      new MpegTsInputTransformer(
          inputTransformer,
          metacardTypes,
          stanag4609Processor,
          klvHandlerFactory,
          defaultKlvHandler,
          stanagParserFactory,
          klvProcessor,
          DISTANCE_TOLERANCE);
  try (InputStream inputStream = new ByteArrayInputStream(new byte[] {})) {
    Metacard finalMetacard = t.transform(inputStream);
    assertThat(finalMetacard.getAttribute(Media.TYPE), is(notNullValue()));
    assertThat(
        finalMetacard.getAttribute(Media.TYPE).getValue(),
        is(MpegTsInputTransformer.CONTENT_TYPE));
    assertThat(finalMetacard.getContentTypeName(), is(MpegTsInputTransformer.CONTENT_TYPE));
    assertThat(finalMetacard.getMetadata(), is("the metadata"));
  }
}