### Question:
Indexed { public static <T> Indexed<T> create(T t, int index) { return new Indexed<T>(t, index); } private  Indexed(T t, int index); static Indexed<T> create(T t, int index); T value(); int index(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test(expected = NullPointerException.class) public void testValueCantBeNull() { Indexed.create(null, 123); }