### Question:
Endpoint { public T getValue() { return value; } Endpoint(T value, BoundType boundType); T getValue(); BoundType getBoundType(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); String toLeftString(); String toRightString();  }### Answer:
@Test public void testValue() { assertEquals(Integer.valueOf(1), openEndpoint.getValue()); assertEquals(Integer.valueOf(2), closedEndpoint.getValue()); }