source: class BasicPModeValidatorTest {
  
      private static BasicPModeValidator validator;
  
      @Test
      public void testValidMultiplePRFlows() {
  
target:         PMode validPMode = new PMode();
          validPMode.setMep(EbMSConstants.ONE_WAY_MEP);
          validPMode.setMepBinding(EbMSConstants.ONE_WAY_PULL);
  
          Leg leg = new Leg();
          PullRequestFlow prFlow = new PullRequestFlow();
          prFlow.setMPC(EbMSConstants.DEFAULT_MPC + "/sub-MPC-1");
          leg.addPullRequestFlow(prFlow);
          prFlow = new PullRequestFlow();
          prFlow.setMPC(EbMSConstants.DEFAULT_MPC + "/sub-MPC-2");
          leg.addPullRequestFlow(prFlow);
          prFlow = new PullRequestFlow();
          prFlow.setMPC(EbMSConstants.DEFAULT_MPC + "/sub-MPC-3");
          leg.addPullRequestFlow(prFlow);
          validPMode.addLeg(leg);
  
          assertTrue(Utils.isNullOrEmpty(validator.validatePMode(validPMode)));
  
          validPMode = new PMode();
          validPMode.setMep(EbMSConstants.ONE_WAY_MEP);
          validPMode.setMepBinding(EbMSConstants.ONE_WAY_PULL);
  
          leg = new Leg();
          UserMessageFlow umFlow = new UserMessageFlow();
          BusinessInfo busInfo = new BusinessInfo();
          busInfo.setMpc("MPC");
          umFlow.setBusinnessInfo(busInfo);
          leg.setUserMessageFlow(umFlow);
          
          prFlow = new PullRequestFlow();
          prFlow.setMPC("MPC-1");
          leg.addPullRequestFlow(prFlow);
          prFlow = new PullRequestFlow();
          prFlow.setMPC("MPC-2");
          leg.addPullRequestFlow(prFlow);
          prFlow = new PullRequestFlow();
          prFlow.setMPC("MPC-3");
          leg.addPullRequestFlow(prFlow);
          validPMode.addLeg(leg);
  
          assertTrue(Utils.isNullOrEmpty(validator.validatePMode(validPMode)));
      }
  
  }