### Question:
Literals { public static LanguageLiteral newLanguageLiteral(String value, String language) { checkNotNull(value,STRING_CANNOT_BE_NULL); checkNotNull(language,LANGUAGE_CANNOT_BE_NULL); return new ImmutableLanguageLiteral(value,language); } private  Literals(); static Literal<String> of(String value); static DurationLiteral of(javax.xml.datatype.Duration duration); static DurationLiteral of(Duration duration); static DateTimeDateTimeLiteralBuilder of(Date date); static DateTimeLiteral of(java.sql.Date date); static DateTimeLiteral of(java.sql.Time time); static DateTimeDateTimeLiteralBuilder of(Calendar calendar); static DateTimeDateTimeLiteralBuilder of(GregorianCalendar calendar); static XMLGregorianCalendarDateTimeLiteralBuilder of(XMLGregorianCalendar calendar); static DateTimeDateTimeLiteralBuilder of(DateTime dateTime); static DurationLiteral duration(long time, TimeUnit unit); static Literal<? extends Serializable> newLiteral(Object value); static TypedLiteral<? extends Serializable> newTypedLiteral(Object value, URI datatype); static LanguageLiteral newLanguageLiteral(String value, String language);  }### Answer:
@Test(expected=NullPointerException.class) public void testNewLanguageLiteral$nullValue() { Literals.newLanguageLiteral(null, "not null"); }
@Test(expected=NullPointerException.class) public void testNewLanguageLiteral$nullLanguage() { Literals.newLanguageLiteral("not null",null); }
@Test public void testNewLanguage$regular() { LanguageLiteral nwl = Literals.newLanguageLiteral("value","language"); assertThat(nwl,notNullValue()); assertThat(nwl.get(),equalTo("value")); assertThat(nwl.language(),equalTo("language")); }