### Question:
XmlValidationDelegate implements RequestDelegationHandler { protected void assureCorrectServiceAndVersionRequestParameters(XmlObject request) throws OwsException { if (!isGetCapabilitiesRequest(request)) { validateRequiredServiceParameter(request); validateRequiredVersionParameter(request); } else { service.validateGetCapabilitiesParameters((GetCapabilitiesDocument) request); } } XmlValidationDelegate(XmlDelegate toDecorate); XmlObject delegate();  }### Answer:
@Test(expected = MissingParameterValueException.class) public void testMissingServiceInGetCapabilitiesRequest() throws XmlException, IOException, OwsException { XmlObject getCapabilities = getRequest(REQUEST_GET_CAPABILITIES_MISSING_SERVICE); validatingDelegate.assureCorrectServiceAndVersionRequestParameters(getCapabilities); }