CircuitBreakerConnection extends AbstractUnsupportedOperationConnection { @Override public boolean isClosed() { return false; }  @Override DatabaseMetaData getMetaData(); @Override void setReadOnly(final boolean readOnly); @Override boolean isReadOnly(); @Override void setTransactionIsolation(final int level); @Override int getTransactionIsolation(); @Override SQLWarning getWarnings(); @Override void clearWarnings(); @Override void setAutoCommit(final boolean autoCommit); @Override boolean getAutoCommit(); @Override void commit(); @Override void rollback(); @Override void setHoldability(final int holdability); @Override int getHoldability(); @Override PreparedStatement prepareStatement(final String sql); @Override PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency); @Override PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability); @Override PreparedStatement prepareStatement(final String sql, final int autoGeneratedKeys); @Override PreparedStatement prepareStatement(final String sql, final int[] columnIndexes); @Override PreparedStatement prepareStatement(final String sql, final String[] columnNames); @Override boolean isValid(final int timeout); @Override Statement createStatement(); @Override Statement createStatement(final int resultSetType, final int resultSetConcurrency); @Override Statement createStatement(final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability); @Override void close(); @Override boolean isClosed();  }
@Test public void assertIsClosed() { assertFalse(connection.isClosed()); }