METHOD_0 ( ) { org . finra . herd . model . jpa . IDENT_0 IDENT_1 = new org . finra . herd . model . jpa . METHOD_1 ( ) ; IDENT_1 . setName ( org . finra . herd . service . helper . IDENT_2 . METHOD_2 ( ) ) ; IDENT_1 . setValue ( org . finra . herd . service . helper . IDENT_3 ) ; org . finra . herd . model . jpa . METHOD_1 IDENT_4 = new org . finra . herd . model . jpa . METHOD_1 ( ) ; IDENT_4 . setName ( org . finra . herd . service . helper . IDENT_2 . toLowerCase ( ) ) ; IDENT_4 . setValue ( org . finra . herd . service . helper . IDENT_5 ) ; org . finra . herd . model . jpa . IDENT_6 IDENT_7 = new org . finra . herd . model . jpa . METHOD_3 ( ) ; java . util . List < org . finra . herd . model . jpa . METHOD_1 > IDENT_8 = new java . util . ArrayList ( ) ; IDENT_7 . METHOD_4 ( IDENT_8 ) ; IDENT_8 . add ( IDENT_1 ) ; IDENT_8 . add ( IDENT_4 ) ; when ( IDENT_9 . METHOD_5 ( IDENT_7 ) ) . thenReturn ( org . finra . herd . service . helper . IDENT_10 ) ; try { IDENT_11 . METHOD_6 ( IDENT_7 , org . finra . herd . service . helper . IDENT_12 ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalStateException e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_9 ) . METHOD_5 ( IDENT_7 ) ; METHOD_7 ( ) ; } METHOD_6 ( org . finra . herd . model . jpa . METHOD_3 , java . util . List ) { java . util . Map < java . lang . String , org . finra . herd . model . jpa . METHOD_1 > IDENT_13 = new java . util . HashMap ( ) ; for ( org . finra . herd . model . jpa . METHOD_1 IDENT_14 : IDENT_7 . METHOD_8 ( ) ) { java . lang . String IDENT_15 = IDENT_14 . getName ( ) . toLowerCase ( ) ; if ( IDENT_13 . containsKey ( IDENT_15 ) ) { throw new java . lang . IllegalStateException ( java . lang . String . format ( STRING_0 , IDENT_15 , IDENT_9 . METHOD_5 ( IDENT_7 ) ) ) ; } IDENT_13 . put ( IDENT_15 , IDENT_14 ) ; } java . util . List < org . finra . herd . model . jpa . METHOD_1 > IDENT_16 = new java . util . ArrayList ( ) ; java . util . List < org . finra . herd . model . jpa . METHOD_1 > IDENT_17 = new java . util . ArrayList ( ) ; if ( ! ( org . apache . commons . IDENT_18 . IDENT_19 . isEmpty ( attributes ) ) ) { for ( org . finra . herd . model . api . xml . IDENT_20 IDENT_21 : attributes ) { java . lang . String IDENT_22 = IDENT_21 . getName ( ) . toLowerCase ( ) ; if ( IDENT_13 . containsKey ( IDENT_22 ) ) { org . finra . herd . model . jpa . METHOD_1 IDENT_14 = IDENT_13 . get ( IDENT_22 ) ; if ( ! ( org . apache . commons . lang3 . StringUtils . equals ( IDENT_21 . getValue ( ) , IDENT_14 . getValue ( ) ) ) ) { IDENT_14 . setValue ( IDENT_21 . getValue ( ) ) ; } IDENT_17 . add ( IDENT_14 ) ; } else { org . finra . herd . model . jpa . METHOD_1 IDENT_14 = new org . finra . herd . model . jpa . METHOD_1 ( ) ; IDENT_7 . METHOD_8 ( ) . add ( IDENT_14 ) ; IDENT_14 . METHOD_9 ( IDENT_7 ) ; IDENT_14 . setName ( IDENT_21 . getName ( ) ) ; IDENT_14 . setValue ( IDENT_21 . getValue ( ) ) ; IDENT_16 . add ( IDENT_14 ) ; } } } IDENT_7 . METHOD_8 ( ) . METHOD_10 ( IDENT_17 ) ; IDENT_7 . METHOD_8 ( ) . addAll ( IDENT_16 ) ; }
org . junit . Assert . assertEquals ( java . lang . String . format ( STRING_0 , org . finra . herd . service . helper . IDENT_2 . toLowerCase ( ) , org . finra . herd . service . helper . IDENT_10 ) , e . getMessage ( ) )