### Question:
GenericJdbcDataSourceResourceConverter extends ResourceConverterImpl<JdbcDataSourceType, ClientJdbcDataSourceType> { @Override protected ClientJdbcDataSourceType resourceSpecificFieldsToClient(ClientJdbcDataSourceType client, JdbcDataSourceType serverObject, ToClientConversionOptions options) { client.setConnectionUrl(serverObject.getConnectionUrl()); client.setDriverClass(serverObject.getDriverClass()); client.setUsername(serverObject.getUsername()); client.setTimezone(serverObject.getTimezone()); return client; }    }### Answer:
@Test public void resourceSpecificFieldsToClient(){ final ClientJdbcDataSource clientObject = new ClientJdbcDataSource(); final JdbcReportDataSource serverObject = new JdbcReportDataSourceImpl(); serverObject.setConnectionUrl(expectedConnectionUrl); serverObject.setDriverClass(expectedDriverClass); serverObject.setPassword(expectedPassword); serverObject.setUsername(expectedUsername); serverObject.setTimezone(expectedTimezone); final AbstractClientJdbcDataSource result = converter.resourceSpecificFieldsToClient(clientObject, serverObject, null); assertSame(result, clientObject); assertEquals(result.getConnectionUrl(), expectedConnectionUrl); assertEquals(result.getDriverClass(), expectedDriverClass); assertNull(result.getPassword()); assertEquals(result.getUsername(), expectedUsername); assertEquals(result.getTimezone(), expectedTimezone); }