### Question:
LDAPConfig { public boolean hasChanged() { return tokenStoreRootSuffix.hasChanged(); } @Inject  LDAPConfig(String rootSuffix); DN getTokenStoreRootSuffix(); boolean hasChanged(); void update(); DN getDefaultRootSuffix();  }### Answer:
@Test public void shouldIndicateHasChanged() { PowerMockito.mockStatic(SystemProperties.class); given(SystemProperties.get("test-root-suffix")).willReturn("badger"); LDAPConfig config = new TestLDAPConfig(); assertThat(config.hasChanged()).isTrue(); }
@Test public void shouldIndicateHasNotChanged() { PowerMockito.mockStatic(SystemProperties.class); given(SystemProperties.get("test-root-suffix")).willReturn(null); LDAPConfig config = new TestLDAPConfig(); assertThat(config.hasChanged()).isFalse(); }