public void onGlobalPropertyChange(String key, @Nullable String value) {
    GlobalPropertyChangeHandler.PropertyChange change = GlobalPropertyChangeHandler.PropertyChange.create(key, value);
    for (GlobalPropertyChangeHandler changeHandler : changeHandlers) {
      changeHandler.onChange(change);
    }
  }
@Test
  public void onGlobalPropertyChange() {
    GlobalPropertyChangeHandler handler = mock(GlobalPropertyChangeHandler.class);
    SettingsChangeNotifier notifier = new SettingsChangeNotifier(new GlobalPropertyChangeHandler[] {handler});

    notifier.onGlobalPropertyChange("foo", "bar");

    verify(handler).onChange(argThat(change -> change.getKey().equals("foo") && change.getNewValue().equals("bar")));
  }