METHOD_0 ( ) { IDENT_0 . content = org . apache . commons . io . IDENT_1 . toString ( org . IDENT_2 . IDENT_3 . service . registry . impl . IDENT_4 . class . getResourceAsStream ( STRING_0 ) , STRING_1 ) ; when ( IDENT_5 . get ( anyString ( ) ) ) . thenReturn ( IDENT_0 ) ; org . IDENT_2 . IDENT_3 . service . registry . IDENT_6 manager = new org . IDENT_2 . IDENT_3 . service . registry . impl . METHOD_1 ( IDENT_7 , IDENT_8 , IDENT_5 , IDENT_9 , IDENT_10 , IDENT_11 , IDENT_12 , IDENT_13 ) ; java . util . List < org . IDENT_2 . IDENT_3 . model . IDENT_14 > resources = manager . METHOD_2 ( STRING_2 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String ) { java . util . List < java . util . Map < java . lang . String , java . lang . String > > IDENT_15 ; java . lang . String url = METHOD_3 ( IDENT_16 ) ; try { IDENT_15 = gson . METHOD_4 ( METHOD_5 ( url ) . content , new com . google . gson . reflect . IDENT_17 < java . util . List < java . util . Map < java . lang . String , java . lang . String > > > ( ) { } . getType ( ) ) ; } catch ( com . google . gson . IDENT_18 e ) { throw new org . IDENT_2 . IDENT_3 . service . METHOD_6 ( org . IDENT_2 . IDENT_3 . service . METHOD_6 . Type . IDENT_19 , url , STRING_3 ) ; } catch ( org . IDENT_2 . IDENT_3 . service . METHOD_6 e ) { throw e ; } java . util . List < org . IDENT_2 . IDENT_3 . model . IDENT_14 > resources = new java . util . ArrayList < org . IDENT_2 . IDENT_3 . model . IDENT_14 > ( ) ; int IDENT_20 = 0 ; for ( java . util . Map < java . lang . String , java . lang . String > res : IDENT_15 ) { if ( ( ( res . isEmpty ( ) ) || ( org . apache . commons . lang3 . StringUtils . METHOD_7 ( res . get ( STRING_4 ) ) ) ) || ( org . apache . commons . lang3 . StringUtils . METHOD_7 ( res . get ( "name" ) ) ) ) { IDENT_20 ++ ; } else { org . IDENT_2 . IDENT_3 . model . IDENT_14 r = new org . IDENT_2 . IDENT_3 . model . METHOD_8 ( ) ; r . METHOD_9 ( res . get ( "name" ) ) ; r . METHOD_10 ( res . get ( "name" ) ) ; java . lang . String key = res . get ( STRING_4 ) ; try { java . util . UUID IDENT_21 = java . util . UUID . METHOD_11 ( key ) ; r . METHOD_12 ( IDENT_21 ) ; } catch ( java . lang . IllegalArgumentException e ) { IDENT_20 ++ ; } resources . add ( r ) ; } if ( IDENT_20 > 0 ) { log . debug ( ( ( STRING_5 + IDENT_20 ) + STRING_6 ) ) ; } } return resources ; }
org . junit . Assert . assertEquals ( 3 , resources . size ( ) )