### Question:
XmlaConnectionResourceConverter extends ResourceConverterImpl<XMLAConnection, ClientXmlaConnection> { @Override protected ClientXmlaConnection resourceSpecificFieldsToClient(ClientXmlaConnection client, XMLAConnection serverObject, ToClientConversionOptions options) { client.setUrl(serverObject.getURI()); client.setCatalog(serverObject.getCatalog()); client.setDataSource(serverObject.getDataSource()); client.setUsername(serverObject.getUsername()); return client; }    }### Answer:
@Test public void resourceSpecificFieldsToClient(){ final String expectedUrl = "testUrl"; final String expectedDataSource = "testDataSource"; final String expectedCatalog = "testCatalog"; final String expectedUsername = "testUsername"; final String expectedPassword = "testPassword"; ClientXmlaConnection clientObject = new ClientXmlaConnection(); XMLAConnection serverObject = new XMLAConnectionImpl(); serverObject.setURI(expectedUrl); serverObject.setCatalog(expectedCatalog); serverObject.setDataSource(expectedDataSource); serverObject.setPassword(expectedPassword); serverObject.setUsername(expectedUsername); final ClientXmlaConnection result = converter.resourceSpecificFieldsToClient(clientObject, serverObject, null); assertSame(result, clientObject); assertEquals(result.getUrl(), expectedUrl); assertEquals(result.getCatalog(), expectedCatalog); assertEquals(result.getDataSource(), expectedDataSource); assertNull(result.getPassword()); assertEquals(result.getUsername(), expectedUsername); }