### Question:
OlapUnitResourceConverter extends ResourceConverterImpl<OlapUnit, ClientOlapUnit> { @Override protected OlapUnit resourceSpecificFieldsToServer(ClientOlapUnit clientObject, OlapUnit resultToUpdate, List<Exception> exceptions, ToServerConversionOptions options) throws IllegalParameterValueException, MandatoryParameterNotFoundException { resultToUpdate.setMdxQuery(clientObject.getMdxQuery()); final ResourceReference serverOlapConnection = resourceReferenceConverterProvider .getConverterForType(ClientReferenciableOlapConnection.class) .toServer(clientObject.getOlapConnection(), resultToUpdate.getOlapClientConnection(), options); resultToUpdate.setOlapClientConnection(serverOlapConnection); return resultToUpdate; }    }### Answer:
@Test public void resourceSpecificFieldsToServer() throws Exception { ClientOlapUnit clientObject = new ClientOlapUnit(); OlapUnit serverObject = new OlapUnitImpl(); clientObject.setMdxQuery(EXPECTED_MDX_QUERY); clientObject.setOlapConnection(clientConnection); final OlapUnit result = converter.resourceSpecificFieldsToServer(clientObject, serverObject, new ArrayList<Exception>(), toServerConversionOptions); assertSame(result, serverObject); assertEquals(result.getMdxQuery(), EXPECTED_MDX_QUERY); assertSame(result.getOlapClientConnection(), serverConnection); }