public void testSplitAndJoinSemicolonNestedInPipeProperties(){
  Properties outer=PropertyUtils.splitPropertiesOnPipe(ONE_THEN_TWO_OUTER_A);
  assertEquals(ONE_SEMI_TWO,outer.getProperty("outer-b"));
  assertEquals(2,outer.size());
  try {
    assertEquals(ONE_THEN_TWO_OUTER_A,PropertyUtils.joinOnPipe(PropertyUtils.toMap(outer)));
    return;
  }
 catch (  ComparisonFailure deviation1) {
  }
  try {
    assertEquals(TWO_THEN_ONE_OUTER_A,PropertyUtils.joinOnPipe(PropertyUtils.toMap(outer)));
    return;
  }
 catch (  ComparisonFailure deviation2) {
  }
  try {
    assertEquals(ONE_THEN_TWO_OUTER_B,PropertyUtils.joinOnPipe(PropertyUtils.toMap(outer)));
    return;
  }
 catch (  ComparisonFailure deviation3) {
  }
  try {
    assertEquals(TWO_THEN_ONE_OUTER_B,PropertyUtils.joinOnPipe(PropertyUtils.toMap(outer)));
    return;
  }
 catch (  ComparisonFailure deviation4) {
  }
  assertEquals(TWO_THEN_ONE_OUTER_A,PropertyUtils.joinOnPipe(PropertyUtils.toMap(outer)));
}

public void testSplitAndJoinSemicolonNestedInPipeProperties ( ) { Properties outer = PropertyUtils . splitPropertiesOnPipe ( ONE_THEN_TWO_OUTER_A ) ; assertEquals ( ONE_SEMI_TWO , outer . getProperty ( "outer-b" ) ) ; assertEquals ( 2 , outer . size ( ) ) ; try { assertEquals ( ONE_THEN_TWO_OUTER_A , PropertyUtils . joinOnPipe ( PropertyUtils . toMap ( outer ) ) ) ; return ; } catch ( ComparisonFailure deviation1 ) { } try { assertEquals ( TWO_THEN_ONE_OUTER_A , PropertyUtils . joinOnPipe ( PropertyUtils . toMap ( outer ) ) ) ; return ; } catch ( ComparisonFailure deviation2 ) { } try { assertEquals ( ONE_THEN_TWO_OUTER_B , PropertyUtils . joinOnPipe ( PropertyUtils . toMap ( outer ) ) ) ; return ; } catch ( ComparisonFailure deviation3 ) { } try { assertEquals ( TWO_THEN_ONE_OUTER_B , PropertyUtils . joinOnPipe ( PropertyUtils . toMap ( outer ) ) ) ; return ; } catch ( ComparisonFailure deviation4 ) { } assertEquals ( TWO_THEN_ONE_OUTER_A , PropertyUtils . joinOnPipe ( PropertyUtils . toMap ( outer ) ) ) ; }
test split and join of nested properties ( using pipe ) .
