### Question:
NotificationSettingsInteractor extends ValueInteractor<ArrayList<NotificationSetting>> { public Observable<VoidResponse> disableAll() { return latest().map(this::disableAll) .flatMap(this::updateNotificationSettings); }  Observable<VoidResponse> updateNotificationSettings(@NonNull final List<NotificationSetting> settings); Observable<VoidResponse> enableAll(); Observable<VoidResponse> disableAll(); boolean updateIfInvalid(); final InteractorSubject<ArrayList<NotificationSetting>> notificationSettings; }### Answer:
@Test public void disableAll() throws Exception { final ArrayList<NotificationSetting> list = new ArrayList<>(1); list.add(create(true)); list.add(create(true)); list.add(create(true)); notificationSettingsInteractor.notificationSettings.onNext(list); Sync.last(notificationSettingsInteractor.disableAll()); for(final NotificationSetting notificationSetting : list) { assertThat(notificationSetting.isEnabled(), equalTo(false)); } }