@Test
@SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert")
public void testSerializePipelineWithSource() throws Exception {

  final ImageFileSource source = imageSourceFactory.create(Files.gompeiJpegFile.file);
  source.initialize();
  eventBus.post(new SourceAddedEvent(source));
  serializeAndDeserialize();
  final ImageFileSource sourceDeserialized = (ImageFileSource) pipeline.getSources().get(0);
  Files.gompeiJpegFile.assertSameImage(
      (MatWrapper) sourceDeserialized.createOutputSockets().get(0).getValue().get());
}