### Question:
Triple { public Triple(F first, S second, T third) { this.first = first; this.second = second; this.third = third; } Triple(F first, S second, T third);  Triple(); F getFirst(); void setFirst(F first); S getSecond(); void setSecond(S second); T getThird(); void setThird(T third);  }### Answer:
@Test public void testTriple() { Triple<String, Integer, Boolean> pair = new Triple<>(); Assert.assertNull(pair.getFirst()); Assert.assertNull(pair.getSecond()); pair.setFirst("Test"); pair.setSecond(5); pair.setThird(true); Assert.assertNotNull(pair.getFirst()); Assert.assertNotNull(pair.getSecond()); Assert.assertNotNull(pair.getThird()); Assert.assertEquals("Test", pair.getFirst()); Assert.assertEquals(5, pair.getSecond().intValue()); Assert.assertTrue(pair.getThird()); pair = new Triple<>("foobar", 44, false); Assert.assertNotNull(pair.getFirst()); Assert.assertNotNull(pair.getSecond()); Assert.assertNotNull(pair.getThird()); Assert.assertEquals("foobar", pair.getFirst()); Assert.assertEquals(44, pair.getSecond().intValue()); Assert.assertFalse(pair.getThird()); }