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 . jpa . IDENT_4 IDENT_5 = new org . finra . herd . model . jpa . METHOD_2 ( ) ; when ( IDENT_6 . METHOD_3 ( IDENT_1 ) ) . thenReturn ( IDENT_5 ) ; org . finra . herd . model . jpa . METHOD_2 result = IDENT_7 . METHOD_4 ( IDENT_1 ) ; verify ( IDENT_6 ) . METHOD_3 ( IDENT_1 ) ; METHOD_5 ( IDENT_6 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . finra . herd . model . api . xml . METHOD_1 ) { javax . persistence . criteria . IDENT_8 builder = IDENT_9 . METHOD_6 ( ) ; javax . persistence . criteria . IDENT_10 < org . finra . herd . model . jpa . METHOD_2 > criteria = builder . METHOD_7 ( org . finra . herd . model . jpa . METHOD_2 . class ) ; javax . persistence . criteria . IDENT_11 < org . finra . herd . model . jpa . METHOD_2 > IDENT_12 = criteria . from ( org . finra . herd . model . jpa . METHOD_2 . class ) ; javax . persistence . criteria . IDENT_13 < org . finra . herd . model . jpa . METHOD_2 , org . finra . herd . model . jpa . IDENT_14 > IDENT_15 = IDENT_12 . join ( IDENT_16 . IDENT_17 ) ; java . util . List < javax . persistence . criteria . IDENT_18 > IDENT_19 = new java . util . ArrayList ( ) ; IDENT_19 . add ( builder . equal ( builder . METHOD_8 ( IDENT_15 . get ( IDENT_20 . code ) ) , IDENT_1 . METHOD_9 ( ) . METHOD_10 ( ) ) ) ; IDENT_19 . add ( builder . equal ( builder . METHOD_8 ( IDENT_12 . get ( IDENT_16 . name ) ) , IDENT_1 . METHOD_11 ( ) . METHOD_10 ( ) ) ) ; criteria . select ( IDENT_12 ) . METHOD_12 ( builder . and ( IDENT_19 . toArray ( new javax . persistence . criteria . IDENT_18 [ IDENT_19 . size ( ) ] ) ) ) ; return METHOD_13 ( criteria , java . lang . String . format ( STRING_0 , IDENT_1 . METHOD_9 ( ) , IDENT_1 . METHOD_11 ( ) ) ) ; }
org . junit . Assert . assertEquals ( IDENT_5 , result )