void initialize() throws SQLException {
   boolean simulateBadConnection =
       getBooleanProperty(wrapper.getProperties(), PROP_SIMULATE_BAD, false);
   if (simulateBadConnection) {
     throw new SQLException("Let's pretend something bad happened.");
   }
 }
 private void checkNameMatch(String expectedName, String actualName) {
   if ((expectedName != null) && (actualName != null)) {
     if (!expectedName.equals(actualName)) {
       throw FarragoResource.instance()
           .MockForeignObjectNotFound
           .ex(wrapper.getRepos().getLocalizedObjectName(actualName));
     }
   }
 }