### Question:
GenericMondrianConnectionResourceConverter extends  DataSourceHolderResourceConverter<MondrianConnectionServerSubType, MondrianConnectionClientSubType> { @Override protected MondrianConnectionClientSubType resourceSpecificFieldsToClient(MondrianConnectionClientSubType client, MondrianConnectionServerSubType serverObject, ToClientConversionOptions options) { client.setSchema(resourceReferenceConverterProvider.getConverterForType(ClientReferenceableFile.class) .toClient(serverObject.getSchema(), options)); return client; }    }### Answer:
@Test public void resourceSpecificFieldsToClient() throws Exception { final ClientMondrianConnection clientObject = new ClientMondrianConnection(); final MondrianConnection serverObject = new MondrianConnectionImpl(); final String fileReferenceUri = "/schema/reference/uri"; final ResourceReference fileReference = new ResourceReference(fileReferenceUri); final ClientReference expectedClientReference = new ClientReference(fileReferenceUri); final ToClientConversionOptions options = ToClientConversionOptions.getDefault(); when(fileResourceReferenceConverter.toClient(fileReference, options)).thenReturn(expectedClientReference); serverObject.setSchema(fileReference); final AbstractClientMondrianConnection result = converter.resourceSpecificFieldsToClient(clientObject, serverObject, options); assertSame(result, clientObject); final ClientReferenceableFile file = result.getSchema(); assertSame(file, expectedClientReference); assertEquals(file.getUri(), fileReferenceUri); }