### Question:
Endpoint { public BoundType getBoundType() { return boundType; } 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 testBoundType() { assertEquals(BoundType.OPEN, openEndpoint.getBoundType()); assertEquals(BoundType.CLOSED, closedEndpoint.getBoundType()); }