### Question:
InfobrightDatabaseMeta extends MySqlDatabaseMeta { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5029; } return -1; }  @Override int getDefaultDatabasePort(); @Override void addDefaultOptions();  }### Answer:
@Test public void mysqlTestOverrides() throws Exception { InfobrightDatabaseMeta idm = new InfobrightDatabaseMeta(); idm.setAccessType( DatabaseMeta.TYPE_ACCESS_NATIVE ); assertEquals( 5029, idm.getDefaultDatabasePort() ); }