@Test
public void testInvalidX509Parameters() {

	PMode invalidPMode =  TestUtils.create1WaySendPushPMode();
    PartnerConfig initiator = new PartnerConfig();
    SecurityConfig secConfig = new SecurityConfig();
    
    SigningConfig sigConfig = new SigningConfig();
    secConfig.setSignatureConfiguration(sigConfig);
    EncryptionConfig encConfig = new EncryptionConfig();
    secConfig.setEncryptionConfiguration(encConfig);
    
    initiator.setSecurityConfiguration(secConfig);
    invalidPMode.setInitiator(initiator);
    // Missing aliases 
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    
    encConfig.setKeystoreAlias("partya");
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    encConfig.setCertificatePassword("ExampleA");
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    sigConfig.setKeystoreAlias("partyb");
    assertNotNull(sigConfig.getKeystoreAlias());
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    sigConfig.setCertificatePassword("ExampleB");
    assertTrue(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
}