### Question:
WrapperSupport implements Wrapper { public boolean isWrapperFor(Class<?> iface) throws SQLException { return delegateType.equals(iface) || delegate.isWrapperFor(iface); } WrapperSupport(D delegate, Class<D> delegateType); boolean isWrapperFor(Class<?> iface); T unwrap(Class<T> iface);  }### Answer:
@Test public void testIsWrapper() throws SQLException { assertTrue(simonConnection.isWrapperFor(Connection.class)); verifyNoMoreInteractions(realConnection); }
@Test public void testIsWrapperFailure() throws SQLException { when(realConnection.isWrapperFor(eq(Comparable.class))).thenReturn(false); assertFalse(simonConnection.isWrapperFor(Comparable.class)); verify(realConnection).isWrapperFor(eq(Comparable.class)); verifyNoMoreInteractions(realConnection); }