### Question:
Utils { public static Locale localeFor(String isoString) { String[] languageAndCountry = isoString.split("-"); if (languageAndCountry.length == 1) { return new Locale(isoString); } else { return new Locale(languageAndCountry[0], languageAndCountry[1]); } }  static String join(Object[] objects, String separator); static Class<?>[] objectClassArray(int n); static Locale localeFor(String isoString);  }### Answer:
@Test public void shouldCreateUSLocale() { assertEquals(Locale.US, Utils.localeFor("en-US")); }
@Test public void shouldFormatLolcatDoubles() throws ParseException { assertEquals(10.4, NumberFormat.getInstance(Utils.localeFor("en-LOL")).parse("10.4").doubleValue(), 0.0); }
@Test public void shouldFormatEnglishDoubles() throws ParseException { assertEquals(10.4, NumberFormat.getInstance(Utils.localeFor("en-US")).parse("10.4").doubleValue(), 0.0); }
@Test public void shouldFormatNorwegianDoubles() throws ParseException { assertEquals(10.4, NumberFormat.getInstance(Utils.localeFor("no")).parse("10,4").doubleValue(), 0.0); }
@Test public void shouldFormatNorwegianDoublesWithEnglishLocaleDifferently() throws ParseException { assertEquals(104.0, NumberFormat.getInstance(Utils.localeFor("en-US")).parse("10,4").doubleValue(), 0.0); }
@Test public void shouldCreateEnglishLocale() { assertEquals(Locale.ENGLISH, Utils.localeFor("en")); }