METHOD_0 ( ) { org . json . simple . JSONObject IDENT_0 = mock ( org . json . simple . JSONObject . class ) ; org . json . simple . JSONObject IDENT_1 = mock ( org . json . simple . JSONObject . class ) ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( com . google . common . collect . IDENT_2 . METHOD_2 ( org . finra . herd . service . impl . IDENT_3 , org . finra . herd . service . impl . IDENT_4 ) ) ; org . json . simple . JSONObject IDENT_5 = mock ( org . json . simple . JSONObject . class ) ; org . json . simple . JSONObject attributes = mock ( org . json . simple . JSONObject . class ) ; when ( attributes . get ( IDENT_6 . IDENT_7 ) ) . thenReturn ( org . finra . herd . service . impl . IDENT_8 ) ; when ( attributes . get ( IDENT_6 . IDENT_9 ) ) . thenReturn ( IDENT_6 . IDENT_10 ) ; when ( attributes . get ( IDENT_6 . IDENT_11 ) ) . thenReturn ( org . finra . herd . service . impl . IDENT_12 ) ; when ( attributes . get ( IDENT_6 . IDENT_13 ) ) . thenReturn ( IDENT_6 . IDENT_14 ) ; when ( attributes . get ( IDENT_6 . IDENT_15 ) ) . thenReturn ( STRING_0 ) ; when ( attributes . get ( IDENT_6 . IDENT_16 ) ) . thenReturn ( IDENT_6 . IDENT_17 ) ; when ( IDENT_18 . METHOD_3 ( org . finra . herd . service . impl . IDENT_19 ) ) . thenReturn ( IDENT_0 ) ; when ( IDENT_20 . METHOD_4 ( IDENT_0 , IDENT_6 . IDENT_21 , org . json . simple . JSONObject . class ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_20 . METHOD_4 ( IDENT_1 , org . finra . herd . service . impl . IDENT_3 , org . json . simple . JSONObject . class ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_20 . METHOD_4 ( IDENT_1 , org . finra . herd . service . impl . IDENT_4 , org . json . simple . JSONObject . class ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_20 . METHOD_4 ( IDENT_5 , IDENT_6 . IDENT_22 , java . lang . String . class ) ) . thenReturn ( org . finra . herd . service . impl . IDENT_23 ) ; when ( IDENT_20 . METHOD_4 ( IDENT_5 , IDENT_6 . IDENT_24 , org . json . simple . JSONObject . class ) ) . thenReturn ( attributes ) ; try { IDENT_25 . METHOD_5 ( org . finra . herd . service . impl . IDENT_19 ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_18 ) . METHOD_3 ( org . finra . herd . service . impl . IDENT_19 ) ; verify ( IDENT_20 ) . METHOD_4 ( IDENT_0 , IDENT_6 . IDENT_21 , org . json . simple . JSONObject . class ) ; verify ( IDENT_20 ) . METHOD_4 ( IDENT_1 , org . finra . herd . service . impl . IDENT_3 , org . json . simple . JSONObject . class ) ; verify ( IDENT_20 ) . METHOD_4 ( IDENT_1 , org . finra . herd . service . impl . IDENT_4 , org . json . simple . JSONObject . class ) ; verify ( IDENT_20 , times ( 2 ) ) . METHOD_4 ( IDENT_5 , IDENT_6 . IDENT_22 , java . lang . String . class ) ; verify ( IDENT_20 , times ( 2 ) ) . METHOD_4 ( IDENT_5 , IDENT_6 . IDENT_24 , org . json . simple . JSONObject . class ) ; METHOD_6 ( ) ; } METHOD_5 ( java . lang . String ) { java . util . List < org . finra . herd . model . dto . IDENT_26 > IDENT_27 = new java . util . ArrayList ( ) ; org . json . simple . JSONObject IDENT_0 = IDENT_18 . METHOD_3 ( IDENT_28 ) ; org . json . simple . JSONObject IDENT_1 = IDENT_20 . METHOD_4 ( IDENT_0 , org . finra . herd . service . impl . IDENT_6 . IDENT_21 , org . json . simple . JSONObject . class ) ; java . util . Set < org . finra . herd . model . dto . IDENT_29 > IDENT_30 = new java . util . HashSet ( ) ; for ( java . lang . Object key : IDENT_1 . METHOD_1 ( ) ) { org . json . simple . JSONObject IDENT_31 = IDENT_20 . METHOD_4 ( IDENT_1 , key , org . json . simple . JSONObject . class ) ; java . lang . String IDENT_32 = IDENT_20 . METHOD_4 ( IDENT_31 , org . finra . herd . service . impl . IDENT_6 . IDENT_22 , java . lang . String . class ) ; org . json . simple . JSONObject attributes = IDENT_20 . METHOD_4 ( IDENT_31 , org . finra . herd . service . impl . IDENT_6 . IDENT_24 , org . json . simple . JSONObject . class ) ; java . lang . Object location = attributes . get ( org . finra . herd . service . impl . IDENT_6 . IDENT_7 ) ; java . lang . Object IDENT_33 = attributes . get ( org . finra . herd . service . impl . IDENT_6 . IDENT_9 ) ; java . lang . Object IDENT_34 = attributes . get ( org . finra . herd . service . impl . IDENT_6 . IDENT_11 ) ; java . lang . Object IDENT_35 = attributes . get ( org . finra . herd . service . impl . IDENT_6 . IDENT_13 ) ; java . lang . Object IDENT_36 = attributes . get ( org . finra . herd . service . impl . IDENT_6 . IDENT_15 ) ; java . lang . Object IDENT_37 = attributes . get ( org . finra . herd . service . impl . IDENT_6 . IDENT_16 ) ; org . finra . herd . model . dto . IDENT_26 IDENT_38 = METHOD_7 ( IDENT_32 , location , IDENT_33 , IDENT_34 , IDENT_35 , IDENT_36 , IDENT_37 ) ; if ( IDENT_38 != null ) { org . finra . herd . model . dto . IDENT_29 IDENT_39 = IDENT_38 . METHOD_8 ( ) ; if ( ! ( IDENT_30 . add ( IDENT_39 ) ) ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_1 , IDENT_39 . METHOD_9 ( ) , IDENT_39 . METHOD_10 ( ) ) ) ; } IDENT_27 . add ( IDENT_38 ) ; } } if ( org . apache . commons . IDENT_40 . IDENT_41 . METHOD_11 ( IDENT_27 ) ) { org . json . simple . JSONObject IDENT_42 = IDENT_20 . METHOD_4 ( IDENT_0 , org . finra . herd . service . impl . IDENT_6 . IDENT_43 , org . json . simple . JSONObject . class ) ; org . json . simple . JSONObject IDENT_44 = IDENT_20 . METHOD_4 ( IDENT_42 , org . finra . herd . service . impl . IDENT_6 . IDENT_45 , org . json . simple . JSONObject . class ) ; for ( org . finra . herd . model . dto . IDENT_26 IDENT_38 : IDENT_27 ) { java . lang . String IDENT_32 = IDENT_38 . METHOD_12 ( ) ; org . json . simple . JSONObject IDENT_31 = IDENT_20 . METHOD_4 ( IDENT_44 , IDENT_32 , org . json . simple . JSONObject . class ) ; org . json . simple . JSONObject IDENT_46 = IDENT_20 . METHOD_4 ( IDENT_31 , ( IDENT_32 + ( org . finra . herd . service . impl . IDENT_6 . IDENT_47 ) ) , org . json . simple . JSONObject . class ) ; org . json . simple . JSONObject IDENT_48 = IDENT_20 . METHOD_4 ( IDENT_46 , org . finra . herd . service . impl . IDENT_6 . IDENT_49 , org . json . simple . JSONObject . class ) ; org . json . simple . JSONObject IDENT_50 = IDENT_20 . METHOD_4 ( IDENT_48 , ( ( IDENT_32 + ( org . finra . herd . service . impl . IDENT_6 . IDENT_47 ) ) + ( org . finra . herd . service . impl . IDENT_6 . IDENT_51 ) ) , org . json . simple . JSONObject . class ) ; org . json . simple . JSONObject IDENT_52 = IDENT_20 . METHOD_4 ( IDENT_50 , org . finra . herd . service . impl . IDENT_6 . IDENT_53 , org . json . simple . JSONObject . class ) ; java . lang . String IDENT_54 = IDENT_20 . METHOD_4 ( IDENT_52 , org . finra . herd . service . impl . IDENT_6 . IDENT_55 , java . lang . String . class ) ; try { IDENT_38 . METHOD_13 ( new java . math . BigDecimal ( IDENT_54 ) ) ; } catch ( java . lang . IDENT_56 e ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_2 , IDENT_54 , java . math . BigDecimal . class . getName ( ) ) , e ) ; } } } return IDENT_27 ; }
org . junit . Assert . assertEquals ( java . lang . String . format ( STRING_1 , org . finra . herd . service . impl . IDENT_8 , org . finra . herd . service . impl . IDENT_12 ) , e . getMessage ( ) )