METHOD_0 ( ) { final org . eclipse . IDENT_0 . query . IDENT_1 . IDENT_2 IDENT_3 = org . apache . rya . api . function . IDENT_3 . IDENT_4 . METHOD_1 ( ( STRING_0 2 + ( ( ( STRING_1 + STRING_0 4 ) + STRING_2 ) + STRING_3 ) ) ) ; final org . eclipse . IDENT_0 . model . IDENT_5 IDENT_6 = org . eclipse . IDENT_0 . model . impl . IDENT_7 . getInstance ( ) ; org . eclipse . IDENT_0 . query . impl . IDENT_8 IDENT_9 = new org . eclipse . IDENT_0 . query . impl . METHOD_2 ( ) ; IDENT_9 . METHOD_3 ( STRING_0 5 , IDENT_6 . METHOD_4 ( STRING_4 ) ) ; IDENT_9 . METHOD_3 ( STRING_0 1 , IDENT_6 . METHOD_4 ( STRING_0 0 ) ) ; IDENT_9 . METHOD_3 ( STRING_0 , IDENT_6 . METHOD_4 ( STRING_5 ) ) ; final org . apache . rya . api . model . IDENT_10 original = new org . apache . rya . api . model . METHOD_5 ( IDENT_9 , STRING_6 ) ; IDENT_9 = new org . eclipse . IDENT_0 . query . impl . METHOD_2 ( ) ; IDENT_9 . METHOD_3 ( STRING_7 , IDENT_6 . METHOD_4 ( STRING_4 ) ) ; IDENT_9 . METHOD_3 ( STRING_0 3 , IDENT_6 . METHOD_4 ( STRING_8 ) ) ; IDENT_9 . METHOD_3 ( STRING_9 , IDENT_6 . METHOD_4 ( STRING_5 ) ) ; final org . apache . rya . api . model . METHOD_5 expected = new org . apache . rya . api . model . METHOD_5 ( IDENT_9 , STRING_6 ) ; final org . apache . rya . api . model . METHOD_5 result = org . apache . rya . api . function . IDENT_3 . IDENT_11 . METHOD_6 ( IDENT_3 ) . project ( original ) ; "<AssertPlaceHolder>" ; } project ( java . lang . IDENT_12 ) { if ( ( IDENT_13 == null ) || ( ! ( IDENT_13 . iterator ( ) . hasNext ( ) ) ) ) { return false ; } final java . util . List < org . bson . IDENT_14 . IDENT_15 > IDENT_16 = new java . util . METHOD_7 ( ) ; final java . util . Set < java . lang . String > IDENT_17 = new java . util . HashSet ( ) ; java . util . Set < java . lang . String > IDENT_18 = null ; for ( final org . eclipse . IDENT_0 . query . IDENT_1 . IDENT_19 IDENT_3 : IDENT_13 ) { if ( IDENT_3 . METHOD_8 ( ) . isEmpty ( ) ) { return false ; } final org . bson . Document IDENT_20 = new org . bson . Document ( ) ; final org . bson . Document IDENT_21 = new org . bson . Document ( ) ; final org . bson . Document IDENT_22 = new org . bson . Document ( ) ; final java . util . Set < java . lang . String > IDENT_23 = new java . util . HashSet ( ) ; for ( final org . eclipse . IDENT_0 . query . IDENT_1 . IDENT_24 IDENT_25 : IDENT_3 . METHOD_8 ( ) ) { java . lang . String to = IDENT_25 . METHOD_9 ( ) ; if ( ! ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . METHOD_10 ( to ) ) ) { to = replace ( to ) ; } java . lang . String from = IDENT_25 . METHOD_11 ( ) ; if ( IDENT_28 . METHOD_12 ( from ) ) { from = IDENT_28 . METHOD_13 ( ) . get ( from ) ; } IDENT_23 . add ( to ) ; if ( to . equals ( from ) ) { IDENT_20 . append ( to , 1 ) ; IDENT_21 . append ( to , 1 ) ; IDENT_22 . append ( to , 1 ) ; } else { IDENT_20 . append ( to , org . apache . rya . mongodb . IDENT_26 . IDENT_27 . METHOD_14 ( from ) ) ; IDENT_21 . append ( to , org . apache . rya . mongodb . IDENT_26 . IDENT_27 . METHOD_15 ( from ) ) ; IDENT_22 . append ( to , org . apache . rya . mongodb . IDENT_26 . IDENT_27 . METHOD_16 ( from ) ) ; } } IDENT_17 . addAll ( IDENT_23 ) ; if ( IDENT_18 == null ) { IDENT_18 = new java . util . HashSet ( IDENT_23 ) ; } else { IDENT_18 . METHOD_17 ( IDENT_23 ) ; } IDENT_16 . add ( new org . bson . Document ( ) . append ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_29 , IDENT_20 ) . append ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_30 , IDENT_21 ) . append ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_31 , IDENT_22 ) . append ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_32 , ( STRING_10 + ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_32 ) ) ) . append ( org . apache . rya . mongodb . IDENT_26 . IDENT_33 , ( STRING_10 + ( IDENT_33 ) ) ) ) ; } if ( ( IDENT_16 . size ( ) ) == 1 ) { pipeline . add ( com . mongodb . client . model . IDENT_34 . project ( IDENT_16 . get ( 0 ) ) ) ; } else { final java . lang . String IDENT_35 = STRING_11 ; final org . bson . IDENT_14 . IDENT_15 IDENT_36 = com . mongodb . client . model . IDENT_37 . fields ( com . mongodb . client . model . IDENT_37 . METHOD_18 ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_29 , ( ( ( STRING_10 + IDENT_35 ) + STRING_12 ) + ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_29 ) ) ) , com . mongodb . client . model . IDENT_37 . METHOD_18 ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_30 , ( ( ( STRING_10 + IDENT_35 ) + STRING_12 ) + ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_30 ) ) ) , com . mongodb . client . model . IDENT_37 . METHOD_18 ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_31 , ( ( ( STRING_10 + IDENT_35 ) + STRING_12 ) + ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_31 ) ) ) , com . mongodb . client . model . IDENT_37 . METHOD_19 ( org . apache . rya . mongodb . IDENT_26 . IDENT_27 . IDENT_32 ) , com . mongodb . client . model . IDENT_37 . METHOD_19 ( org . apache . rya . mongodb . IDENT_26 . IDENT_33 ) ) ; pipeline . add ( com . mongodb . client . model . IDENT_34 . project ( com . mongodb . client . model . IDENT_37 . METHOD_18 ( IDENT_35 , IDENT_16 ) ) ) ; pipeline . add ( com . mongodb . client . model . IDENT_34 . METHOD_20 ( ( STRING_10 + IDENT_35 ) ) ) ; pipeline . add ( com . mongodb . client . model . IDENT_34 . project ( IDENT_36 ) ) ; } IDENT_38 . METHOD_21 ( ) ; IDENT_39 . METHOD_21 ( ) ; IDENT_38 . addAll ( IDENT_18 ) ; IDENT_39 . addAll ( IDENT_17 ) ; return true ; }
org . junit . Assert . assertEquals ( expected , result )