@Override
  public Connection connect(java.lang.String url, java.util.Properties info) throws SQLException {
    TestObjectStoreInitRetry.misbehave();
    url = url.replace("fderby","derby");
    return new FakeDerby.Connection(super.connect(url, info));
  }
Fake derby driver - companion class to enable testing by TestObjectStoreInitRetry
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/FakeDerby.java