### Question:
Language { public Language(String lang, double prob) { this.lang = lang; this.prob = prob; } Language(String lang, double prob); String toString(); public String lang; public double prob; }### Answer:
@Test public final void testLanguage() { Language lang = new Language(null, 0); assertEquals(lang.lang, null); assertEquals(lang.prob, 0.0, 0.0001); assertEquals(lang.toString(), ""); Language lang2 = new Language("en", 1.0); assertEquals(lang2.lang, "en"); assertEquals(lang2.prob, 1.0, 0.0001); assertEquals(lang2.toString(), "en:1.0"); }