Test JComponent