AudibleSettings { public void setAudibleMode(@NonNull String audibleMode) { mode = AudibleModes.get(audibleMode); min = mode.defaultMin; max = mode.defaultMax; precision = mode.defaultPrecision; }  void load(@NonNull SharedPreferences prefs); void setAudibleMode(@NonNull String audibleMode); public boolean isEnabled; public boolean airplaneMode; @NonNull
    public AudibleMode mode; public double min; public double max; public int precision; public float speechInterval; public float speechRate; }
@Test public void setAudibleMode() { AudibleSettings settings = new AudibleSettings(); settings.load(new SharedPreferencesMock()); settings.setAudibleMode("glide_ratio"); assertFalse(settings.isEnabled); assertTrue(settings.airplaneMode); assertEquals("Glide Ratio", settings.mode.name); assertEquals(0.0, settings.min, 0.001); assertEquals(4.0, settings.max, 0.001); }