### Question:
MariaDBDatabaseMeta extends MySqlDatabaseMeta { @Override public String getLegacyColumnName(DatabaseMetaData dbMetaData, ResultSetMetaData rsMetaData, int index) throws HopDatabaseException { if (dbMetaData == null) { throw new HopDatabaseException(BaseMessages.getString(PKG, "MariaDBDatabaseMeta.Exception.LegacyColumnNameNoDBMetaDataException")); } if (rsMetaData == null) { throw new HopDatabaseException(BaseMessages.getString(PKG, "MariaDBDatabaseMeta.Exception.LegacyColumnNameNoRSMetaDataException")); } try { return rsMetaData.getColumnLabel(index); } catch (Exception e) { throw new HopDatabaseException(String.format("%s: %s", BaseMessages.getString(PKG, "MariaDBDatabaseMeta.Exception.LegacyColumnNameException"), e.getMessage()), e); } }  @Override String getDriverClass(); @Override String getURL(String hostname, String port, String databaseName); @Override boolean fullExceptionLog(Exception e); @Override String getLegacyColumnName(DatabaseMetaData dbMetaData, ResultSetMetaData rsMetaData, int index);  }### Answer:
@Test public void testGetLegacyColumnNameFieldNumber() throws Exception { assertEquals( "NUMBER", new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), getResultSetMetaData(), 1 ) ); }
@Test public void testGetLegacyColumnNameFieldName() throws Exception { assertEquals( "NAME", new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), getResultSetMetaData(), 2 ) ); }
@Test public void testGetLegacyColumnNameFieldLastName() throws Exception { assertEquals( "LAST_NAME", new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), getResultSetMetaData(), 3 ) ); }
@Test public void testGetLegacyColumnNameFieldFirstName() throws Exception { assertEquals( "FIRST_NAME", new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), getResultSetMetaData(), 4 ) ); }
@Test public void testGetLegacyColumnNameFieldDB() throws Exception { assertEquals( "DB", new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), getResultSetMetaData(), 5 ) ); }
@Test public void testGetLegacyColumnNameNoAliasText() throws Exception { assertEquals( "NoAliasText", new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), getResultSetMetaData(), 6 ) ); }
@Test( expected = HopDatabaseException.class ) public void testGetLegacyColumnNameNullDBMetaDataException() throws Exception { new MariaDBDatabaseMeta().getLegacyColumnName( null, getResultSetMetaData(), 1 ); }
@Test( expected = HopDatabaseException.class ) public void testGetLegacyColumnNameNullRSMetaDataException() throws Exception { new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), null, 1 ); }
@Test( expected = HopDatabaseException.class ) public void testGetLegacyColumnNameDatabaseException() throws Exception { new MariaDBDatabaseMeta().getLegacyColumnName( mock( DatabaseMetaData.class ), getResultSetMetaDataException(), 1 ); }