### Question:
ObjectHolder { public void setValue(final T value) { this.value = value; } ObjectHolder();  ObjectHolder(final T value); T getValue(); void setValue(final T value);  }### Answer:
@Test public void testSetValue() { final ObjectHolder<Integer> it = new ObjectHolder<>(); assertNull(it.getValue()); final Integer val = Integer.valueOf(9879872); it.setValue(val); assertEquals("value 1", val, it.getValue()); final ObjectHolder<Integer> it2 = new ObjectHolder<>(Integer.valueOf(987987)); assertEquals("value 2", Integer.valueOf(987987), it2.getValue()); it.setValue(val); assertEquals("value 3", val, it.getValue()); }