### Question:
ConfigurationSettingTableInput extends ConfigurationSettingRelationalInput { @Override @XmlTransient public String getValueAsString() { return ConfigurationSettingTableInput.getIdentifier(this.table, this.databaseConnection.getDbUrl(), this.databaseConnection.getUsername(), this.databaseConnection.getSystem()); } ConfigurationSettingTableInput();  ConfigurationSettingTableInput(String table,
                                        ConfigurationSettingDatabaseConnection databaseConnection); String getTable(); ConfigurationSettingTableInput setTable(String table); ConfigurationSettingDatabaseConnection getDatabaseConnection(); ConfigurationSettingTableInput setDatabaseConnection(ConfigurationSettingDatabaseConnection databaseConnection); @Override @XmlTransient String getValueAsString(); @Override @XmlTransient @GwtIncompatible("Can only be called from backend.") void generate(RelationalInputGeneratorInitializer initializer); @Override boolean equals(Object o); @Override int hashCode(); @XmlTransient @JsonIgnore static String getIdentifier(String table, String url, String username, DbSystem system); public String type; }### Answer:
@Test public void testGetValueAsString() { String expectedUrl = "url"; String expectedUsername = "username"; String expectedPassword = "password"; DbSystem expectedSystem = DbSystem.PostgreSQL; String expectedTable = "table"; ConfigurationSettingDatabaseConnection expectedDatabaseConnection = new ConfigurationSettingDatabaseConnection(expectedUrl, expectedUsername, expectedPassword, expectedSystem); ConfigurationSettingTableInput setting = new ConfigurationSettingTableInput(expectedTable, expectedDatabaseConnection); String expectedValuesString = expectedTable + "; " + expectedDatabaseConnection.getValueAsString(); String actualValuesString = setting.getValueAsString(); assertEquals(expectedValuesString, actualValuesString); }