@Test
public void testDefaultListRenderer() {

    JXList list = new JXList();
    ListCellRenderer renderer = ((DelegatingRenderer) list.getCellRenderer()).getDelegateRenderer();
    assertTrue("default renderer expected to be DefaultListRenderer " +
                    "\n but is " + renderer.getClass(),
            renderer instanceof DefaultListRenderer);
}