@Test
@SuppressWarnings("unchecked")
public void testCannotConnectIncompatibleTypes() {

  InputSocket<Number> a = isf.create(SocketHints.createNumberSocketHint("a", 0.0));
  OutputSocket<String> b = osf.create(new SocketHint.Builder<>(String.class).identifier("b")
      .initialValue("").build());
  assertFalse("Should not be able to connect incompatible types", pipeline.canConnect(
      (OutputSocket) b, (InputSocket) a));
}