### Question:
RedshiftDatabaseMeta extends PostgreSQLDatabaseMeta { @Override public String getURL( String hostname, String port, String databaseName ) { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_ODBC ) { return "jdbc:odbc:" + databaseName; } else { return "jdbc:redshift: } } RedshiftDatabaseMeta(); @Override int getDefaultDatabasePort(); @Override String getDriverClass(); @Override String getURL( String hostname, String port, String databaseName ); @Override String getExtraOptionsHelpText(); @Override boolean isFetchSizeSupported(); @Override boolean supportsSetMaxRows(); @Override String[] getUsedLibraries();  }### Answer:
@Test public void testGetURL() throws Exception { assertEquals( "jdbc:redshift: assertEquals( "jdbc:redshift: dbMeta.getURL( "rs.pentaho.com", "4444", "myDB" ) ); dbMeta.setAccessType( DatabaseMeta.TYPE_ACCESS_ODBC ); assertEquals( "jdbc:odbc:myDB", dbMeta.getURL( null, "Not Null", "myDB" ) ); }