### Question:
DefaultNotificationFilterPreferenceManager implements NotificationFilterPreferenceManager { @Override public void setFilterPreferenceEnabled(DocumentReference user, String filterPreferenceId, boolean enabled) throws NotificationException { try { for (NotificationFilterPreferenceProvider provider : componentManager.<NotificationFilterPreferenceProvider>getInstanceList( NotificationFilterPreferenceProvider.class)) { provider.setFilterPreferenceEnabled(user, filterPreferenceId, enabled); } } catch (ComponentLookupException e) { logger.info("Failed to enable or disabled the filter preference [{}].", filterPreferenceId, e); } }  @Override Collection<NotificationFilterPreference> getFilterPreferences(DocumentReference user); @Override Stream<NotificationFilterPreference> getFilterPreferences(
            Collection<NotificationFilterPreference> filterPreferences, NotificationFilter filter); @Override Stream<NotificationFilterPreference> getFilterPreferences(
            Collection<NotificationFilterPreference> filterPreferences, NotificationFilter filter,
            NotificationFilterType filterType); @Override Stream<NotificationFilterPreference> getFilterPreferences(
            Collection<NotificationFilterPreference> filterPreferences, NotificationFilter filter,
            NotificationFilterType filterType, NotificationFormat format); @Override void saveFilterPreferences(DocumentReference user, Set<NotificationFilterPreference> filterPreferences); @Override void deleteFilterPreference(DocumentReference user, String filterPreferenceId); @Override void setFilterPreferenceEnabled(DocumentReference user, String filterPreferenceId, boolean enabled); @Override void setStartDateForUser(DocumentReference user, Date startDate);  }### Answer:
@Test public void setFilterPreferenceEnabled() throws Exception { mocker.getComponentUnderTest().setFilterPreferenceEnabled(testUser,"myFilter1", true); mocker.getComponentUnderTest().setFilterPreferenceEnabled(testUser,"myFilter2", false); verify(testProvider, times(1)).setFilterPreferenceEnabled( eq(testUser), eq("myFilter1"), eq(true)); verify(testProvider, times(1)).setFilterPreferenceEnabled( eq(testUser), eq("myFilter2"), eq(false)); }