@Test
public void testEncryptedWithIncompleteCoverage() throws Exception {
this.runInterceptorAndValidate(
"encrypted_missing_enc_header.xml",
this.getPrefixes(),
Arrays.asList(new XPathExpression(
"//ser:Header", CoverageType.ENCRYPTED, CoverageScope.ELEMENT)),
false);
this.runInterceptorAndValidate(
"encrypted_body_content.xml",
this.getPrefixes(),
Arrays.asList(new XPathExpression(
"//soap:Body", CoverageType.ENCRYPTED, CoverageScope.ELEMENT)),
false);
this.runInterceptorAndValidate(
"encrypted_body_element.xml",
this.getPrefixes(),
Arrays.asList(new XPathExpression(
"//soap:Body", CoverageType.ENCRYPTED, CoverageScope.CONTENT)),
false);
}