void initialize() throws SQLException { boolean simulateBadConnection = getBooleanProperty(wrapper.getProperties(), PROP_SIMULATE_BAD, false); if (simulateBadConnection) { throw new SQLException("Let's pretend something bad happened."); } }