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 , IDENT_4 , IDENT_5 , IDENT_6 , IDENT_7 , IDENT_8 , IDENT_9 ) ; org . finra . herd . model . jpa . IDENT_10 IDENT_11 = new org . finra . herd . model . jpa . METHOD_2 ( ) ; IDENT_11 . setId ( org . finra . herd . service . impl . IDENT_12 ) ; when ( IDENT_13 . METHOD_3 ( IDENT_14 . IDENT_15 , IDENT_11 ) ) . thenReturn ( java . util . Arrays . asList ( new org . finra . herd . model . jpa . METHOD_4 ( ) , new org . finra . herd . model . jpa . METHOD_4 ( ) ) ) ; when ( IDENT_16 . METHOD_5 ( IDENT_1 ) ) . thenReturn ( org . finra . herd . service . impl . IDENT_17 ) ; try { IDENT_18 . METHOD_6 ( IDENT_11 , IDENT_1 ) ; junit . framework . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_13 ) . METHOD_3 ( IDENT_14 . IDENT_15 , IDENT_11 ) ; verify ( IDENT_16 ) . METHOD_5 ( IDENT_1 ) ; METHOD_7 ( ) ; } METHOD_6 ( org . finra . herd . model . jpa . METHOD_2 , org . finra . herd . model . api . xml . METHOD_1 ) { java . util . List < org . finra . herd . model . jpa . METHOD_4 > IDENT_19 = IDENT_13 . METHOD_3 ( IDENT_14 . IDENT_15 , IDENT_11 ) ; if ( org . apache . commons . IDENT_20 . IDENT_21 . isEmpty ( IDENT_19 ) ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_0 , IDENT_16 . METHOD_5 ( IDENT_1 ) ) ) ; } if ( ( org . apache . commons . IDENT_20 . IDENT_21 . size ( IDENT_19 ) ) > 1 ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_1 , IDENT_19 . size ( ) , IDENT_14 . IDENT_15 , IDENT_16 . METHOD_5 ( IDENT_1 ) ) ) ; } org . finra . herd . model . jpa . METHOD_4 IDENT_22 = IDENT_19 . get ( 0 ) ; java . lang . String IDENT_23 = IDENT_22 . getStatus ( ) . getCode ( ) ; if ( ! ( org . finra . herd . service . impl . IDENT_24 . IDENT_25 . contains ( IDENT_23 ) ) ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_2 , IDENT_23 , IDENT_22 . METHOD_8 ( ) . getName ( ) , IDENT_16 . METHOD_5 ( IDENT_1 ) ) ) ; } return IDENT_22 ; }
org . junit . Assert . assertEquals ( java . lang . String . format ( STRING_1 , 2 , IDENT_14 . IDENT_15 , org . finra . herd . service . impl . IDENT_17 ) , e . getMessage ( ) )