@@ -0,0 +1,1600 @@
+/* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-%0A * This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/. */%0A%0Apackage org.mozilla.focus.utils;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.RobolectricTestRunner;%0A%0Aimport java.util.Locale;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A@RunWith(RobolectricTestRunner.class)%0Apublic class LocalesTest %7B%0A    @Test%0A    public void testLanguage() %7B%0A        assertEquals(%22en%22, Locales.getLanguage(Locale.getDefault()));%0A    %7D%0A%0A    @Test%0A    public void testHebrewIsrael() %7B%0A        final Locale locale = new Locale(%22iw%22, %22IL%22);%0A%0A        assertEquals(%22he%22, Locales.getLanguage(locale));%0A        assertEquals(%22he-IL%22, Locales.getLanguageTag(locale));%0A    %7D%0A%0A    @Test%0A    public void testIndonesianIndonesia() %7B%0A        final Locale locale = new Locale(%22in%22, %22ID%22);%0A%0A        assertEquals(%22id%22, Locales.getLanguage(locale));%0A        assertEquals(%22id-ID%22, Locales.getLanguageTag(locale));%0A    %7D%0A%0A    @Test%0A    public void testYiddishUnitedStates() %7B%0A        final Locale locale = new Locale(%22ji%22, %22US%22);%0A%0A        assertEquals(%22yi%22, Locales.getLanguage(locale));%0A        assertEquals(%22yi-US%22, Locales.getLanguageTag(locale));%0A    %7D%0A%0A    @Test%0A    public void testEmptyCountry() %7B%0A        final Locale locale = new Locale(%22en%22);%0A%0A        assertEquals(%22en%22, Locales.getLanguage(locale));%0A        assertEquals(%22en%22, Locales.getLanguageTag(locale));%0A    %7D%0A%7D

Add unit tests for Locales class.