@Test
public void remove_removesFromInternalPreferences() {

    final String testKey = "Another test key";
    final Disposable subscription = rxPreferences.edit()
            .remove(testKey)
            .commit()
            .subscribeOn(testScheduler)
            .subscribe();
    subscriptions.add(subscription);
    // Before subscribing, edits are pushed to the internal editor, but not committed:
    verify(mockSharedPreferences).edit();
    verifyNoMoreInteractions(mockSharedPreferences);
    verify(mockSharedPreferencesEditor).remove(testKey);
    verifyNoMoreInteractions(mockSharedPreferencesEditor);
    assertFalse(subscription.isDisposed());
    advanceScheduler();
    verifyCommitAfterSubscribe(subscription);
}