HttpNeo4jResultSet extends Neo4jResultSet { @Override public void close() throws SQLException { result = null; row = -1; isClosed = true; currentRow = null; } HttpNeo4jResultSet(Neo4jStatement statement, Neo4jResult result); @Override void close(); @Override boolean wasNull(); @Override Neo4jResultSetMetaData getMetaData(); @Override String getString(int columnIndex); @Override boolean getBoolean(int columnIndex); @Override short getShort(int columnIndex); @Override int getInt(int columnIndex); @Override long getLong(int columnIndex); @Override float getFloat(int columnIndex); @Override double getDouble(int columnIndex); @Override @SuppressWarnings("rawtypes") Neo4jArray getArray(int columnIndex); @Override Object getObject(int columnIndex); @Override String getString(String columnLabel); @Override boolean getBoolean(String columnLabel); @Override short getShort(String columnLabel); @Override int getInt(String columnLabel); @Override long getLong(String columnLabel); @Override float getFloat(String columnLabel); @Override double getDouble(String columnLabel); @Override Neo4jArray getArray(String columnLabel); @Override Object getObject(String columnLabel); @Override int findColumn(String columnLabel); @Override int getType(); @Override int getConcurrency(); @Override int getHoldability(); @Override boolean isClosed(); @Override java.sql.Statement getStatement();  }
@Test public void closeMultipleTimeShouldBeNOOP() throws SQLException { HttpNeo4jResultSet rs = new HttpNeo4jResultSet(null, null); rs.close(); rs.close(); rs.close(); }