METHOD_0 ( ) { com . IDENT_0 . core . model . IDENT_1 connection = org . mockito . Mockito . mock ( com . IDENT_0 . core . model . IDENT_1 . class ) ; com . IDENT_0 . core . model . IDENT_2 IDENT_3 = org . mockito . Mockito . mock ( com . IDENT_0 . core . model . IDENT_2 . class ) ; org . mockito . Mockito . when ( connection . METHOD_1 ( ) ) . thenReturn ( IDENT_3 ) ; java . util . HashSet < com . IDENT_0 . core . model . IDENT_4 > IDENT_5 = com . google . common . collect . IDENT_6 . METHOD_2 ( org . mockito . Mockito . mock ( com . IDENT_0 . core . model . IDENT_4 . class ) ) ; org . mockito . Mockito . when ( connection . METHOD_3 ( ) ) . thenReturn ( IDENT_5 ) ; com . IDENT_0 . core . service . IDENT_7 IDENT_8 = new com . IDENT_0 . core . service . METHOD_4 ( ) ; net . sf . json . JSONObject IDENT_9 = new net . sf . json . JSONObject ( ) ; IDENT_9 . put ( "test" , "foo" ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( net . sf . json . JSONObject , com . IDENT_0 . core . model . IDENT_1 ) { if ( ( org . apache . commons . collections . IDENT_10 . isEmpty ( IDENT_9 ) ) || ( org . springframework . util . IDENT_11 . isEmpty ( connection . METHOD_3 ( ) ) ) ) { return 0 ; } int IDENT_12 = 0 ; for ( com . IDENT_0 . core . model . IDENT_4 IDENT_13 : connection . METHOD_3 ( ) ) { if ( IDENT_13 . METHOD_6 ( ) . contains ( IDENT_14 . IDENT_15 ) ) { try { METHOD_7 ( IDENT_13 , IDENT_9 . toString ( ) , IDENT_14 . IDENT_15 ) ; IDENT_12 ++ ; } catch ( java . lang . Exception e ) { logger . error ( STRING_0 , e ) ; } } } return IDENT_12 ; }
org . junit . Assert . assertEquals ( 0 , IDENT_8 . METHOD_5 ( IDENT_9 , connection ) )