### Question:
XmlValidationDelegate implements RequestDelegationHandler { protected void validateRequiredVersionParameter(XmlObject requestDocument) throws OwsException { XmlCursor xmlCursor = requestDocument.newCursor(); xmlCursor.toFirstChild(); if (moveToAttribute(xmlCursor, "version")) { service.validateVersionParameter(xmlCursor.getTextValue()); } } XmlValidationDelegate(XmlDelegate toDecorate); XmlObject delegate();  }### Answer:
@Test(expected = MissingParameterValueException.class) public void testMissingVersionParameterInRequest() throws Exception { XmlObject submitDocument = getRequest(REQUEST_MISSING_VERSION); validatingDelegate.validateRequiredVersionParameter(submitDocument); }
@Test(expected = InvalidParameterValueException.class) public void testInvalidVersionParameterInRequest() throws Exception { XmlObject submitDocument = getRequest(REQUEST_INVALID_VERSION); validatingDelegate.validateRequiredVersionParameter(submitDocument); }