@Test
public void testComboInheritsComponentPopup() {

    JComboBox box = new JComboBox(new Object[] {"some", "other"});
    box.setInheritsPopupMenu(true);
    box.setEditable(true);
    JPanel parent = new JPanel();
    JPopupMenu popup = new JPopupMenu();
    popup.add("dummy");
    parent.setComponentPopupMenu(popup);
    parent.add(box);
    // sanity: combobox
    assertInheritedPopup(box, popup);
}