@Test
public void testLoadImageToMat() throws IOException {

  // Given above setup
  // When
  final ImageFileSource fileSource = new ImageFileSource(osf, origin -> null, this
      .imageFile.file);
  fileSource.initialize();
  OutputSocket<MatWrapper> outputSocket = fileSource.getOutputSockets().get(0);
  // Then
  assertTrue("The output socket's value was empty.", outputSocket.getValue().isPresent());
  imageFile.assertSameImage(outputSocket.getValue().get());
}