// Path: app/src/main/java/ee/ioc/phon/android/speechutils/RecognitionServiceManager.java
// @TargetApi(Build.VERSION_CODES.LOLLIPOP)
// public static String makeLangLabel(String localeAsStr) {
//     // Just to make sure we do not get a NPE from Locale.forLanguageTag
//     if (localeAsStr == null || localeAsStr.isEmpty()) {
//         return "?";
//     }
//     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
//         return Locale.forLanguageTag(localeAsStr).getDisplayName();
//     }
//     return localeAsStr;
// }


import org.junit.Test;
import static ee.ioc.phon.android.speechutils.RecognitionServiceManager.makeLangLabel;
import static org.junit.Assert.assertEquals;
package ee.ioc.phon.android.speechutils;



public class RecognitionServiceManagerTest {

    @Test
    public void makeLangLabel01() {
// Path: app/src/main/java/ee/ioc/phon/android/speechutils/RecognitionServiceManager.java
// @TargetApi(Build.VERSION_CODES.LOLLIPOP)
// public static String makeLangLabel(String localeAsStr) {
//     // Just to make sure we do not get a NPE from Locale.forLanguageTag
//     if (localeAsStr == null || localeAsStr.isEmpty()) {
//         return "?";
//     }
//     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
//         return Locale.forLanguageTag(localeAsStr).getDisplayName();
//     }
//     return localeAsStr;
// }


// Path: app/src/androidTest/java/ee/ioc/phon/android/speechutils/RecognitionServiceManagerTest.java
import org.junit.Test;
import static ee.ioc.phon.android.speechutils.RecognitionServiceManager.makeLangLabel;
import static org.junit.Assert.assertEquals;

package ee.ioc.phon.android.speechutils;



public class RecognitionServiceManagerTest {

    @Test
    public void makeLangLabel01() {
        assertEquals("?", makeLangLabel(null));