### Question:
QueryResourceConverter extends DataSourceHolderResourceConverter<Query, ClientQuery> { @Override protected Query resourceSpecificFieldsToServer(ClientQuery clientObject, Query resultToUpdate, List<Exception> exceptions, ToServerConversionOptions options) throws IllegalParameterValueException { resultToUpdate.setSql(clientObject.getValue()); resultToUpdate.setLanguage(clientObject.getLanguage()); return resultToUpdate; }    }### Answer:
@Test public void resourceSpecificFieldsToServer() throws Exception { final String expectedQueryValue = "testQueryValue"; final String expectedQueryLanguage = "testQueryLanguage"; final ClientQuery clientObject = new ClientQuery(); clientObject.setLanguage(expectedQueryLanguage); clientObject.setValue(expectedQueryValue); final Query expectedServerObject = new QueryImpl(); final Query result = converter.resourceSpecificFieldsToServer(clientObject, expectedServerObject, new ArrayList<Exception>(), null); assertSame(result, expectedServerObject); assertEquals(result.getLanguage(), expectedQueryLanguage); assertEquals(result.getSql(), expectedQueryValue); }