assertConversion(Port.TYPE_INT, Port.TYPE_INT, 42L, 42L);
assertConversion(Port.TYPE_INT, Port.TYPE_FLOAT, 42L, 42.0);
assertConversion(Port.TYPE_INT, Port.TYPE_STRING, 42L, "42");
assertConversion(Port.TYPE_INT, Port.TYPE_BOOLEAN, 42L, true);
assertConversion(Port.TYPE_INT, Port.TYPE_COLOR, 255L, Color.WHITE);
assertConversion(Port.TYPE_INT, Port.TYPE_POINT, 42L, new Point(42, 42));
assertConversion(Port.TYPE_FLOAT, Port.TYPE_INT, 42.0, 42L);
assertConversion(Port.TYPE_FLOAT, Port.TYPE_FLOAT, 42.0, 42.0);
assertConversion(Port.TYPE_FLOAT, Port.TYPE_STRING, 42.0, "42.0");
assertConversion(Port.TYPE_FLOAT, Port.TYPE_BOOLEAN, 0.0, false);
assertConversion(Port.TYPE_FLOAT, Port.TYPE_COLOR, 0.0, Color.BLACK);
assertConversion(Port.TYPE_FLOAT, Port.TYPE_POINT, 42.0, new Point(42, 42));
assertConversion(Port.TYPE_STRING, Port.TYPE_INT, "42", 42L);
assertConversion(Port.TYPE_STRING, Port.TYPE_FLOAT, "42", 42.0);
assertConversion(Port.TYPE_STRING, Port.TYPE_STRING, "hello", "hello");
assertConversion(Port.TYPE_STRING, Port.TYPE_BOOLEAN, "true", true);
assertConversion(Port.TYPE_STRING, Port.TYPE_BOOLEAN, "not-a-boolean", false);
assertConversion(Port.TYPE_STRING, Port.TYPE_COLOR, "#ff0000ff", new Color(1, 0, 0));
assertConversion(Port.TYPE_STRING, Port.TYPE_POINT, "4,2", new Point(4, 2));
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_INT, true, 1L);
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_INT, false, 0L);
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_FLOAT, true, 1.0);
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_STRING, true, "true");
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_STRING, false, "false");
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_BOOLEAN, false, false);
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_COLOR, true, Color.WHITE);
assertConversion(Port.TYPE_BOOLEAN, Port.TYPE_COLOR, false, Color.BLACK);
assertConversion(Port.TYPE_COLOR, Port.TYPE_STRING, new Color(0, 1, 0), "#00ff00ff");
assertConversion(Port.TYPE_COLOR, Port.TYPE_COLOR, Color.WHITE, Color.WHITE);
assertConversion(Port.TYPE_POINT, Port.TYPE_STRING, new Point(4, 2), "4.00,2.00");
assertConversion(Port.TYPE_POINT, Port.TYPE_POINT, new Point(4, 2), new Point(4, 2));
}