@Test
public void whenPreferencesAreAdded_returnsTrue() {

    PreferenceFragment fragment = Robolectric.buildFragment(TestPreferenceFragment.class).create().resume().visible().get();
    AggregatePreferencesAdder loader = new AggregatePreferencesAdder(fragment);
    boolean result = loader.add();
    assertTrue(result);
}