@Test
public void testCallingInitializeAfterGetOutputSocketUpdatesOutputSocket() throws IOException {

  final ImageFileSource source = new ImageFileSource(osf, origin -> null, this
      .imageFile.file);
  // Calling this before loading the image should throw an exception
  final OutputSocket<MatWrapper> imageSource = source.getOutputSockets().get(0);
  assertTrue("The value should not be present if the source hasn't been initialized",
      imageSource.getValue().get().empty());
  source.initialize();
  assertFalse("The value should now be present since the source has been initialized",
      imageSource.getValue().get().empty());
}