import static org.mockito.Mockito.verify;
public class SettingsChangeNotifierTest {
@Test
public void onGlobalPropertyChange() {
GlobalPropertyChangeHandler handler = mock(GlobalPropertyChangeHandler.class);
SettingsChangeNotifier notifier = new SettingsChangeNotifier(new GlobalPropertyChangeHandler[] {handler});
notifier.onGlobalPropertyChange("foo", "bar");
verify(handler).onChange(argThat(new ArgumentMatcher<GlobalPropertyChangeHandler.PropertyChange>() {