### Question:
ExpansionCategoryFormatter { public String getFormattedAttributionValueRange(@NonNull final Category category, @NonNull final ExpansionValueRange expansionRange, @NonNull final Context context) { return context.getString(R.string.smart_alarm_expansion_attribute_format, getFormattedValueRange(category, expansionRange, context)); } @Inject  ExpansionCategoryFormatter(@NonNull final UnitFormatter unitFormatter); String getFormattedValueRange(@NonNull final Category category,
                                         @NonNull final ExpansionValueRange valueRange,
                                         @NonNull final Context context); Pair<Integer,Integer> getInitialValuePair(@NonNull final Category category,
                                     @NonNull final List<Capability> capabilities,
                                     @NonNull final ExpansionValueRange valueRange); ExpansionValueRange getIdealValueRange(@NonNull final Category category,
                                                  @NonNull final ExpansionValueRange valueRange); UnitConverter getUnitConverter(@NonNull final Category category); UnitConverter getReverseUnitConverter(@NonNull final Category category); String getFormattedAttributionValueRange(@NonNull final Category category,
                                                    @NonNull final ExpansionValueRange expansionRange,
                                                    @NonNull final Context context); String getSuffix(@NonNull final Category category); @DrawableRes int getDisplayIconRes(@NonNull final Category category); @StringRes int getDisplayValueResFromState(@NonNull final State expansionState); @XmlRes int getExpansionInfoDialogXmlRes(@NonNull final Category category); @XmlRes int getExpansionAlarmInfoDialogXmlRes(@NonNull final Category category);  }### Answer:
@Test public void getFormattedAttributionValueRange() throws Exception { preferencesInteractor.edit().putBoolean(PreferencesInteractor.USE_CELSIUS, true) .commit(); assertEquals("set at 0°", expansionCategoryFormatter.getFormattedAttributionValueRange(Category.TEMPERATURE, new ExpansionValueRange(0, 0), getContext())); assertEquals("set at 0° - 32°", expansionCategoryFormatter.getFormattedAttributionValueRange(Category.TEMPERATURE, new ExpansionValueRange(0, 32), getContext())); preferencesInteractor.edit().putBoolean(PreferencesInteractor.USE_CELSIUS, false) .commit(); assertEquals("set at 32° - 89°", expansionCategoryFormatter.getFormattedAttributionValueRange(Category.TEMPERATURE, new ExpansionValueRange(0, 32), getContext())); }