### Question:
BusinessPreferenceGetter { public boolean getAutomaticExport() { return preferencesWrapper.getBooleanPreference(context, "automatic_save", false); } BusinessPreferenceGetter(Context context);   BusinessPreferenceGetter(Context context, PreferencesWrapper preferencesWrapper); boolean getAutomaticExport();  }### Answer:
@Test public void getAutomaticExport() { doReturn(true).when(preferencesWrapper).getBooleanPreference(context, "automatic_save", false); assertTrue(new BusinessPreferenceGetter(context, preferencesWrapper).getAutomaticExport()); }