// Check principal
KeyValueTokenSecurityEvent event =
(KeyValueTokenSecurityEvent)securityEventListener.getSecurityEvent(WSSecurityEventConstants.KeyValueToken);
Assert.assertNotNull(event);
KeyValueSecurityToken token = event.getSecurityToken();
Principal principal = token.getPrincipal();
Assert.assertTrue(principal instanceof PublicKeyPrincipal);
}
}