### Question:
LocaleListCompat { public static LocaleListCompat create(@NonNull Locale... localeList) { LocaleListCompat instance = new LocaleListCompat(); instance.setLocaleListArray(localeList); return instance; } private  LocaleListCompat(); @RequiresApi(24) static LocaleListCompat wrap(Object object); @Nullable Object unwrap(); static LocaleListCompat create(@NonNull Locale... localeList); Locale get(int index); boolean isEmpty(); @IntRange(from = 0) int size(); @IntRange(from = -1) int indexOf(Locale locale); @NonNull String toLanguageTags(); Locale getFirstMatch(String[] supportedLocales); @NonNull static LocaleListCompat getEmptyLocaleList(); @NonNull static LocaleListCompat forLanguageTags(@Nullable String list); @NonNull @Size(min = 1) static LocaleListCompat getAdjustedDefault(); @NonNull @Size(min = 1) static LocaleListCompat getDefault(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testNullArgument() { try { LocaleListCompat.create((Locale) null); fail("Initializing a LocaleListCompat with a null argument should throw."); } catch (Throwable e) { assertEquals(NullPointerException.class, e.getClass()); } try { LocaleListCompat.create((Locale[]) null); fail("Initializing a LocaleListCompat with a null array should throw."); } catch (Throwable e) { assertEquals(NullPointerException.class, e.getClass()); } }
@Test public void testNullArguments() { final Locale[] la = {Locale.US, null}; try { LocaleListCompat.create(la); fail("Initializing a LocaleListCompat with an array containing null should throw."); } catch (Throwable e) { assertEquals(NullPointerException.class, e.getClass()); } }
@Test public void testRepeatedArguments() { final Locale[] la = {Locale.US, Locale.US}; try { LocaleListCompat.create(la); fail("Initializing a LocaleListCompat with an array containing duplicates should " + "throw."); } catch (Throwable e) { assertEquals(IllegalArgumentException.class, e.getClass()); } }