Citrus XPath Validation Cannot Find Element
问题 I have an XML payload with the element ValidationFault . Part of my validation is to confirm the ValidationFault element occurs only once in the XML payload. Using the following Citrus Java DSL: runner.receive(action -> action.endpoint(endpointName) .validate("number://ValidationFault", 1)); I do not get back the expected value of 1, instead 0: com.consol.citrus.exceptions.TestCaseFailedException: Validation failed: Values not equal for element '//ValidationFault', expected '1' but was '0' I