METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String user = STRING_1 ; java . lang . String IDENT_1 = STRING_2 ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 IDENT_6 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . class ) ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 IDENT_8 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 . class ) ; doReturn ( IDENT_1 ) . when ( IDENT_8 ) . getId ( ) ; org . pentaho . platform . web . http . api . resources . IDENT_9 IDENT_10 = mock ( org . pentaho . platform . web . http . api . resources . IDENT_9 . class ) ; java . util . List < org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 > IDENT_11 = new java . util . ArrayList < org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 > ( ) ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 IDENT_12 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 . class ) ; doReturn ( false ) . when ( IDENT_12 ) . METHOD_1 ( ) ; IDENT_11 . add ( IDENT_12 ) ; java . util . Map < java . lang . String , java . io . IDENT_13 > IDENT_14 = mock ( java . util . Map . class ) ; doReturn ( IDENT_0 ) . when ( IDENT_14 ) . get ( IDENT_15 . IDENT_16 ) ; when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . repository . METHOD_2 ( IDENT_12 . getId ( ) ) ) . thenReturn ( IDENT_14 ) ; doReturn ( IDENT_0 ) . when ( IDENT_6 ) . getId ( ) ; doReturn ( IDENT_1 ) . when ( IDENT_10 ) . METHOD_3 ( user ) ; doReturn ( IDENT_8 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . repository ) . METHOD_4 ( IDENT_1 ) ; doReturn ( IDENT_10 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 ) . METHOD_5 ( ) ; doReturn ( IDENT_11 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . repository ) . METHOD_6 ( IDENT_1 ) ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 IDENT_19 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . class ) ; doReturn ( IDENT_19 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 ) . METHOD_7 ( IDENT_12 , null , false ) ; try { doReturn ( IDENT_6 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 ) . METHOD_8 ( IDENT_0 ) ; java . util . List < org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 > list = org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . METHOD_9 ( IDENT_0 , user ) ; "<AssertPlaceHolder>" ; } catch ( java . io . IDENT_20 e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Throwable t ) { org . junit . Assert . fail ( ) ; } } size ( ) { return METHOD_10 ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( list . size ( ) , 1 )