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 ) ; org . finra . herd . model . jpa . IDENT_13 IDENT_14 = new org . finra . herd . model . jpa . METHOD_3 ( ) ; IDENT_14 . setName ( org . finra . herd . service . impl . IDENT_15 ) ; org . finra . herd . model . jpa . IDENT_16 IDENT_17 = new org . finra . herd . model . jpa . METHOD_4 ( ) ; IDENT_17 . METHOD_5 ( org . finra . herd . service . impl . IDENT_18 ) ; org . finra . herd . model . jpa . IDENT_19 IDENT_20 = new org . finra . herd . model . jpa . METHOD_6 ( ) ; IDENT_20 . METHOD_7 ( IDENT_14 ) ; IDENT_20 . METHOD_8 ( IDENT_17 ) ; when ( IDENT_21 . METHOD_9 ( IDENT_22 . IDENT_23 , IDENT_11 ) ) . thenReturn ( java . util . Arrays . asList ( IDENT_20 ) ) ; when ( IDENT_24 . METHOD_10 ( IDENT_1 ) ) . thenReturn ( org . finra . herd . service . impl . IDENT_25 ) ; try { IDENT_26 . METHOD_11 ( IDENT_11 , IDENT_1 ) ; junit . framework . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_21 ) . METHOD_9 ( IDENT_22 . IDENT_23 , IDENT_11 ) ; verify ( IDENT_24 ) . METHOD_10 ( IDENT_1 ) ; METHOD_12 ( ) ; } METHOD_11 ( org . finra . herd . model . jpa . METHOD_2 , org . finra . herd . model . api . xml . METHOD_1 ) { java . util . List < org . finra . herd . model . jpa . METHOD_6 > IDENT_27 = IDENT_21 . METHOD_9 ( IDENT_22 . IDENT_23 , IDENT_11 ) ; if ( org . apache . commons . IDENT_28 . IDENT_29 . isEmpty ( IDENT_27 ) ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_0 , IDENT_24 . METHOD_10 ( IDENT_1 ) ) ) ; } if ( ( org . apache . commons . IDENT_28 . IDENT_29 . size ( IDENT_27 ) ) > 1 ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_1 , IDENT_27 . size ( ) , IDENT_22 . IDENT_23 , IDENT_24 . METHOD_10 ( IDENT_1 ) ) ) ; } org . finra . herd . model . jpa . METHOD_6 IDENT_20 = IDENT_27 . get ( 0 ) ; java . lang . String IDENT_30 = IDENT_20 . getStatus ( ) . getCode ( ) ; if ( ! ( org . finra . herd . service . impl . IDENT_31 . IDENT_32 . contains ( IDENT_30 ) ) ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_2 , IDENT_30 , IDENT_20 . METHOD_13 ( ) . getName ( ) , IDENT_24 . METHOD_10 ( IDENT_1 ) ) ) ; } return IDENT_20 ; }
org . junit . Assert . assertEquals ( java . lang . String . format ( STRING_2 , org . finra . herd . service . impl . IDENT_18 , org . finra . herd . service . impl . IDENT_15 , org . finra . herd . service . impl . IDENT_25 ) , e . getMessage ( ) )