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));
}