HaloStorageApi { @Api(1.0) @NonNull public HaloPreferencesStorage prefs() { if (mPreferences == null) { throw new HaloConfigurationException("You have to provide a preferences name in the builder to use the preferences data source."); } return mPreferences; } protected  HaloStorageApi(@NonNull HaloFramework framework, @Nullable HaloPreferencesStorage preferencesStorage, @NonNull HaloDataLite database); @Api(1.3) @NonNull static HaloStorageApi newStorageApi(HaloFramework framework, StorageConfig configuration); @Api(1.0) @NonNull HaloPreferencesStorage prefs(); @Api(1.0) @NonNull HaloDataLite db(); @Api(1.1) @NonNull Context context(); @Api(1.3) @NonNull HaloFramework framework();  }
@Test public void thatCanGetPreferences(){ assertThat(mStorage.prefs()).isNotNull(); }