public void testMessageSigningMismatchedKeys() throws InterruptedException {
MockEndpoint mockVerified = getMockEndpoint("mock:verified");
mockVerified.setExpectedMessageCount(0);
MockEndpoint mockSigned = getMockEndpoint("mock:signed");
mockSigned.whenAnyExchangeReceived(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
// let's override the key used by the verifying endpoint
exchange.getIn().setHeader(DigitalSignatureConstants.KEYSTORE_ALIAS, "system_b");