@Test(expected = CatalogTransformerException.class)
public void testStanagParseError() throws Exception {

  when(streamParser.parse()).thenThrow(new RuntimeException());
  MpegTsInputTransformer t =
      new MpegTsInputTransformer(
          inputTransformer,
          metacardTypes,
          stanag4609Processor,
          klvHandlerFactory,
          defaultKlvHandler,
          stanagParserFactory,
          klvProcessor,
          DISTANCE_TOLERANCE);
  try (InputStream inputStream = new ByteArrayInputStream(new byte[] {})) {
    t.transform(inputStream);
  }
}