@Test
public void shouldUpdateSharedPreferencesWhenKeyChanges() {

  updatable.addToObservable(sharedPreferencesObservable(sharedPreferences, TEST_KEY));
  sharedPreferenceListenerCaptor.getValue()
      .onSharedPreferenceChanged(sharedPreferences, TEST_KEY);
  assertThat(updatable, wasUpdated());
}