@Test
public void testCreateConnectionSkin() {

    CONNECTION.setType(null);
    assertNull(skinFactory.createConnectionSkin(null));
    assertTrue(skinFactory.createConnectionSkin(CONNECTION) instanceof DefaultConnectionSkin);
    CONNECTION.setType(CONNECTION_TYPE);
    assertTrue(skinFactory.createConnectionSkin(CONNECTION) instanceof DefaultConnectionSkin);
    skinFactory.setConnectionSkin(CONNECTION_TYPE, CustomConnectionSkin.class);
    assertTrue(skinFactory.createConnectionSkin(CONNECTION) instanceof CustomConnectionSkin);
}