} catch (IllegalArgumentException e) {
}
}
public void testConstructorNullValue() {
event = new PreferenceChangeEvent(Preferences.userRoot(), "key", null);
assertEquals("key", event.getKey());
assertNull(event.getNewValue());
assertSame(Preferences.userRoot(), event.getNode());
assertSame(Preferences.userRoot(), event.getSource());
event = new PreferenceChangeEvent(Preferences.userRoot(), "", null);
assertEquals("", event.getKey());
assertNull(event.getNewValue());
assertSame(Preferences.userRoot(), event.getNode());
assertSame(Preferences.userRoot(), event.getSource());
event = new PreferenceChangeEvent(Preferences.userRoot(), null, "value");
assertNull(event.getKey());
assertEquals("value", event.getNewValue());
assertSame(Preferences.userRoot(), event.getNode());
assertSame(Preferences.userRoot(), event.getSource());
event = new PreferenceChangeEvent(Preferences.userRoot(), null, "");
assertNull(event.getKey());
assertEquals("", event.getNewValue());
assertSame(Preferences.userRoot(), event.getNode());
assertSame(Preferences.userRoot(), event.getSource());
}