### Question:
MinutesChoices { final void updateLocale() { Locale locale = Locale.getDefault(); for (int i = 0; i <= BEGIN_INDEX_WHOLE_MINUTES_ONLY; ++i) { int halfMinutes = i + 1; choices[i] = (halfMinutes % 2) == 0 ? Integer.toString(halfMinutes / 2) : String.format(locale, "%,.1f", halfMinutes / 2.0F); } } MinutesChoices(); static int normalizeSeconds(int secondsPerAlarm);  }### Answer:
@Test public void deDeStrings() { assumeThat(Locale.getDefault(), is(Locale.US)); Locale.setDefault(Locale.GERMANY); assertThat("minute choices", Arrays.asList(mc.choices), ListPrefixMatcher.listPrefixMatcher("0.5", "1", "1.5", "2", "2.5", "3", "3.5")); assertThat("number of minute choices", mc.choices.length, is(104)); mc.updateLocale(); assertThat("minute choices", Arrays.asList(mc.choices), ListPrefixMatcher.listPrefixMatcher( "0,5", "1", "1,5", "2", "2,5", "3", "3,5", "4", "4,5", "5", "6", "7")); assertThat("number of minute choices", mc.choices.length, is(104)); assertThat("the last minute choice", mc.choices[mc.choices.length - 1], is(MMS)); }