Neo4jParameterMetaData implements java.sql.ParameterMetaData { @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return Wrapper.isWrapperFor(iface, this.getClass()); }  @Override int getParameterCount(); @Override int isNullable(int param); @Override boolean isSigned(int param); @Override int getPrecision(int param); @Override int getScale(int param); @Override int getParameterType(int param); @Override String getParameterTypeName(int param); @Override String getParameterClassName(int param); @Override int getParameterMode(int param); @Override T unwrap(Class<T> iface); @Override boolean isWrapperFor(Class<?> iface);  }
@Test public void isWrapperForShouldReturnTrue() throws SQLException { Neo4jParameterMetaData parameterMetaData = mock(Neo4jParameterMetaData.class, Mockito.CALLS_REAL_METHODS); assertTrue(parameterMetaData.isWrapperFor(Neo4jParameterMetaData.class)); assertTrue(parameterMetaData.isWrapperFor(java.sql.ParameterMetaData.class)); assertTrue(parameterMetaData.isWrapperFor(java.sql.Wrapper.class)); }
@Test public void isWrapperForShouldReturnFalse() throws SQLException { Neo4jParameterMetaData parameterMetaData = mock(Neo4jParameterMetaData.class, Mockito.CALLS_REAL_METHODS); assertFalse(parameterMetaData.isWrapperFor(Neo4jResultSet.class)); assertFalse(parameterMetaData.isWrapperFor(java.sql.Driver.class)); assertFalse(parameterMetaData.isWrapperFor(Neo4jResultSet.class)); assertFalse(parameterMetaData.isWrapperFor(java.sql.ResultSet.class)); }