assertTrue(ctx.getInMessage().getSubject().getPrincipals().size() > 0);
}
public void testBadSignatureServer() throws Exception {
SoapMarshaler marshaler = new SoapMarshaler(true, true);
SoapReader reader = marshaler.createReader();
SoapMessage msg = reader.read(getClass().getResourceAsStream("signed-bad.xml"));
Context ctx = new Context();
ctx.setInMessage(msg);
StandaloneCrypto crypto = new StandaloneCrypto();