@Test
public void testInvalidGeneralParameters() {

	PMode invalidPMode = new PMode();
	
    invalidPMode.setMep(EbMSConstants.ONE_WAY_MEP+"/smth"); // wrong mep
    invalidPMode.setMepBinding(EbMSConstants.ONE_WAY_PUSH);
    invalidPMode.addLeg(new Leg());
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    invalidPMode.setMep(EbMSConstants.ONE_WAY_MEP);
    assertTrue(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    invalidPMode.setMepBinding(EbMSConstants.ONE_WAY_PUSH + "/smth"); // wrong mep binding
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    invalidPMode.setMepBinding(EbMSConstants.ONE_WAY_PUSH);
    assertTrue(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    invalidPMode.addLeg(new Leg()); // adding second leg
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
    invalidPMode.setLegs(null);
    invalidPMode.setMep(EbMSConstants.TWO_WAY_MEP);
    invalidPMode.addLeg(new Leg()); // adding only one leg into two way mep
    assertFalse(Utils.isNullOrEmpty(validator.validatePMode(invalidPMode)));
}