### Question:
AwsDataSourceResourceConverter extends GenericJdbcDataSourceResourceConverter<AwsReportDataSource, ClientAwsDataSource> { @Override protected void resourceSecureFieldsToClient(ClientAwsDataSource client, AwsReportDataSource serverObject, ToClientConversionOptions options) { super.resourceSecureFieldsToClient(client, serverObject, options); client.setSecretKey(serverObject.getAWSSecretKey()); }    }### Answer:
@Test public void resourceSecureFieldsToClient_resultContainsSecretKey(){ final String expectedSecretKey = "testSecretKey"; final String expectedPassword = "testPassword"; AwsReportDataSource serverObject = new AwsReportDataSourceImpl(); serverObject.setAWSSecretKey(expectedSecretKey); serverObject.setPassword(expectedPassword); ClientAwsDataSource clientObject = new ClientAwsDataSource(); converter.resourceSecureFieldsToClient(clientObject, serverObject, null); assertEquals(clientObject.getSecretKey(), expectedSecretKey); assertEquals(clientObject.getPassword(), expectedPassword); }