@Test
public void testSearchPopupPropertyChange() throws Exception {

    final JPopupMenu popupMenu = new JPopupMenu();
    searchField.addPropertyChangeListener("findPopupMenu",
            new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent evt) {
                    assertNull(evt.getOldValue());
                    assertSame(evt.getNewValue(), popupMenu);
                    eventReceived = true;
                }
            });
    NativeSearchFieldSupport.setFindPopupMenu(searchField, popupMenu);
    assertTrue(eventReceived);
}