@Test
public void testSearchFieldUIChange() throws Exception {

	NativeSearchFieldSupport.setSearchField(tf, true);
	tf.addPropertyChangeListener(NativeSearchFieldSupport.MAC_TEXT_FIELD_VARIANT_PROPERTY, this);
	tf.updateUI();
	Assert.assertTrue(eventFired);
	
	NativeSearchFieldSupport.setSearchField(tf, false);
	eventFired = false;
	tf.updateUI();
	Assert.assertFalse(eventFired);
}