METHOD_0 ( ) { org . finra . herd . model . api . xml . IDENT_0 IDENT_1 = new org . finra . herd . model . api . xml . METHOD_1 ( IDENT_2 , IDENT_3 ) ; org . finra . herd . model . api . xml . IDENT_4 IDENT_5 = new org . finra . herd . model . api . xml . METHOD_2 ( java . util . Arrays . asList ( new org . finra . herd . model . api . xml . METHOD_3 ( IDENT_2 , IDENT_3 , IDENT_6 , IDENT_7 , IDENT_8 ) , new org . finra . herd . model . api . xml . METHOD_3 ( IDENT_2 , IDENT_3 , IDENT_9 , IDENT_7 , IDENT_8 ) ) ) ; when ( IDENT_10 . METHOD_4 ( IDENT_1 , org . finra . herd . rest . IDENT_11 , false ) ) . thenReturn ( IDENT_5 ) ; org . finra . herd . model . api . xml . METHOD_2 IDENT_12 = IDENT_13 . METHOD_4 ( org . finra . herd . rest . IDENT_2 , org . finra . herd . rest . IDENT_3 , org . finra . herd . rest . IDENT_11 , false ) ; verify ( IDENT_10 ) . METHOD_4 ( IDENT_1 , org . finra . herd . rest . IDENT_11 , false ) ; METHOD_5 ( IDENT_10 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . finra . herd . model . api . xml . METHOD_1 , java . lang . String , boolean ) { javax . persistence . criteria . IDENT_14 builder = IDENT_15 . METHOD_6 ( ) ; javax . persistence . criteria . IDENT_16 < javax . persistence . IDENT_17 > criteria = builder . METHOD_7 ( ) ; javax . persistence . criteria . IDENT_18 < org . finra . herd . model . jpa . IDENT_19 > IDENT_20 = criteria . from ( org . finra . herd . model . jpa . IDENT_19 . class ) ; javax . persistence . criteria . IDENT_21 < org . finra . herd . model . jpa . IDENT_19 , org . finra . herd . model . jpa . IDENT_22 > IDENT_23 = IDENT_20 . join ( IDENT_24 . IDENT_25 ) ; javax . persistence . criteria . IDENT_21 < org . finra . herd . model . jpa . IDENT_19 , org . finra . herd . model . jpa . IDENT_26 > IDENT_27 = IDENT_20 . join ( IDENT_24 . IDENT_28 ) ; javax . persistence . criteria . IDENT_21 < org . finra . herd . model . jpa . IDENT_22 , org . finra . herd . model . jpa . IDENT_29 > IDENT_30 = IDENT_23 . join ( IDENT_31 . IDENT_32 ) ; javax . persistence . criteria . Path < java . lang . String > IDENT_33 = IDENT_30 . get ( IDENT_34 . code ) ; javax . persistence . criteria . Path < java . lang . String > IDENT_35 = IDENT_23 . get ( IDENT_31 . name ) ; javax . persistence . criteria . Path < java . lang . String > IDENT_36 = IDENT_20 . get ( IDENT_24 . IDENT_37 ) ; javax . persistence . criteria . Path < java . lang . String > IDENT_38 = IDENT_27 . get ( IDENT_39 . code ) ; javax . persistence . criteria . Path < java . lang . Integer > IDENT_40 = IDENT_20 . get ( IDENT_24 . IDENT_41 ) ; javax . persistence . criteria . IDENT_42 < java . lang . Integer > IDENT_43 = builder . max ( IDENT_20 . get ( IDENT_24 . IDENT_41 ) ) ; javax . persistence . criteria . IDENT_44 IDENT_45 = builder . equal ( builder . METHOD_8 ( IDENT_30 . get ( IDENT_34 . code ) ) , IDENT_1 . METHOD_9 ( ) . METHOD_10 ( ) ) ; IDENT_45 = builder . and ( IDENT_45 , builder . equal ( builder . METHOD_8 ( IDENT_23 . get ( IDENT_31 . name ) ) , IDENT_1 . METHOD_11 ( ) . METHOD_10 ( ) ) ) ; if ( org . apache . commons . lang3 . StringUtils . METHOD_12 ( IDENT_46 ) ) { IDENT_45 = builder . and ( IDENT_45 , builder . equal ( builder . METHOD_8 ( IDENT_20 . get ( IDENT_24 . IDENT_37 ) ) , IDENT_46 . METHOD_10 ( ) ) ) ; } criteria . METHOD_13 ( IDENT_33 , IDENT_35 , IDENT_36 , IDENT_38 , ( IDENT_47 ? IDENT_43 : IDENT_40 ) ) ; criteria . METHOD_14 ( IDENT_45 ) ; if ( IDENT_47 ) { java . util . List < javax . persistence . criteria . IDENT_42 < ? > > IDENT_48 = new java . util . ArrayList ( ) ; IDENT_48 . add ( IDENT_33 ) ; IDENT_48 . add ( IDENT_35 ) ; IDENT_48 . add ( IDENT_36 ) ; IDENT_48 . add ( IDENT_38 ) ; criteria . METHOD_15 ( IDENT_48 ) ; } java . util . List < javax . persistence . criteria . IDENT_49 > IDENT_50 = new java . util . ArrayList ( ) ; IDENT_50 . add ( builder . METHOD_16 ( IDENT_36 ) ) ; IDENT_50 . add ( builder . METHOD_16 ( IDENT_38 ) ) ; if ( ! IDENT_47 ) { IDENT_50 . add ( builder . METHOD_16 ( IDENT_40 ) ) ; } criteria . METHOD_17 ( METHOD_17 ) ; java . util . List < javax . persistence . IDENT_17 > IDENT_51 = IDENT_15 . METHOD_18 ( criteria ) . METHOD_19 ( ) ; java . util . List < org . finra . herd . model . api . xml . METHOD_3 > IDENT_5 = new java . util . ArrayList ( ) ; for ( javax . persistence . IDENT_17 tuple : IDENT_51 ) { org . finra . herd . model . api . xml . METHOD_3 IDENT_52 = new org . finra . herd . model . api . xml . METHOD_3 ( ) ; IDENT_5 . add ( IDENT_52 ) ; IDENT_52 . METHOD_20 ( tuple . get ( IDENT_33 ) ) ; IDENT_52 . METHOD_21 ( tuple . get ( IDENT_35 ) ) ; IDENT_52 . METHOD_22 ( tuple . get ( IDENT_36 ) ) ; IDENT_52 . METHOD_23 ( tuple . get ( IDENT_38 ) ) ; IDENT_52 . METHOD_24 ( tuple . get ( ( IDENT_47 ? IDENT_43 : IDENT_40 ) ) ) ; } return IDENT_5 ; }
org . junit . Assert . assertEquals ( IDENT_5 , IDENT_12 )