@Test
public void testDefaultVisualsUseContextFont() {

    JXTable table = new JXTable();
    final Font font = table.getFont().deriveFont(50f);
    TableCellContext context = new TableCellContext() {
        @Override
        protected Font getFont() {
            return font;
        }
        
    };
    context.installContext(table, -1, -1, -1, false, false, false, false);
    JLabel label = new JLabel();
    new DefaultVisuals<JLabel>().configureVisuals(label, context);
    assertEquals(font, label.getFont());
}