ImpalaSimbaDatabaseMeta extends BaseSimbaDatabaseMeta { @Override public Map<String, String> getDefaultOptions() { HashMap<String, String> options = new HashMap<>(); options.put( String.format( "%s.%s", getPluginId(), SOCKET_TIMEOUT_OPTION ), "10" ); return options; } ImpalaSimbaDatabaseMeta( DriverLocator driverLocator, NamedClusterService namedClusterService,
                                  MetastoreLocator metastoreLocator ); @Override String getDriverClass(); @Override String[] getUsedLibraries(); @Override int getDefaultDatabasePort(); @Override Map<String, String> getDefaultOptions();  }
@Test public void testGetDefaultOptions() { Map<String, String> options = impalaSimbaDatabaseMeta.getDefaultOptions(); assertThat( options, IsMapWithSize.aMapWithSize( 1 ) ); assertThat( options, IsMapContaining.hasEntry( impalaSimbaDatabaseMeta.getPluginId() + "." + SparkSimbaDatabaseMeta.SOCKET_TIMEOUT_OPTION, "10" ) ); }