METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( false ) ; javax . ws . rs . core . Response actual = rest . METHOD_2 ( repository , null , null , null ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( com . IDENT_1 . IDENT_2 . repository . IDENT_3 , java . lang . String , java . lang . String , javax . ws . rs . core . IDENT_4 ) { if ( IDENT_0 . METHOD_1 ( ) ) { java . lang . String IDENT_5 = repository . METHOD_3 ( ) . getKey ( ) ; com . IDENT_6 . IDENT_7 . IDENT_8 . rest . Map < java . lang . String , java . lang . Object > data = new com . IDENT_6 . IDENT_7 . IDENT_8 . rest . METHOD_4 ( ) ; com . IDENT_1 . IDENT_2 . IDENT_9 . IDENT_10 IDENT_11 = IDENT_12 . METHOD_5 ( repository ) ; if ( IDENT_11 == null ) { data . put ( STRING_0 , STRING_1 ) ; return javax . ws . rs . core . Response . status ( Response . Status . IDENT_13 ) . entity ( data ) . build ( ) ; } com . IDENT_6 . IDENT_7 . IDENT_8 . rest . List < com . IDENT_6 . IDENT_7 . IDENT_8 . item . IDENT_14 > IDENT_15 = IDENT_12 . METHOD_6 ( IDENT_11 . METHOD_7 ( ) ) ; com . IDENT_6 . IDENT_7 . IDENT_8 . item . IDENT_14 IDENT_16 = METHOD_8 ( java . lang . Integer . METHOD_9 ( id ) , IDENT_15 ) ; if ( IDENT_16 == null ) { data . put ( STRING_0 , STRING_2 ) ; return javax . ws . rs . core . Response . status ( Response . Status . IDENT_13 ) . entity ( data ) . build ( ) ; } else { com . IDENT_1 . IDENT_2 . user . IDENT_17 user = IDENT_0 . METHOD_10 ( ) ; com . IDENT_6 . IDENT_7 . IDENT_8 . rest . Map < java . lang . String , java . lang . Object > IDENT_18 = IDENT_19 . METHOD_11 ( ) . entrySet ( ) . stream ( ) . collect ( java . util . stream . IDENT_20 . METHOD_12 ( Entry :: getKey , ( e ) -> e . getValue ( ) . get ( 0 ) ) ) ; com . IDENT_6 . IDENT_7 . IDENT_8 . item . IDENT_14 job = IDENT_16 . METHOD_13 ( ) . METHOD_14 ( IDENT_18 ) . build ( ) ; com . IDENT_6 . IDENT_7 . IDENT_8 . item . IDENT_21 IDENT_22 = new com . IDENT_6 . IDENT_7 . IDENT_8 . item . IDENT_21 . Builder ( ) . add ( STRING_3 , ( ) -> IDENT_23 ) . add ( STRING_4 , com . IDENT_6 . IDENT_7 . IDENT_8 . item . IDENT_14 . IDENT_24 . IDENT_25 :: toString ) . build ( ) ; com . IDENT_6 . IDENT_7 . IDENT_8 . rest . Map < java . lang . String , java . lang . Object > message = jenkins . METHOD_15 ( IDENT_5 , user , job , IDENT_22 ) . getMessage ( ) ; return javax . ws . rs . core . Response . METHOD_16 ( message ) . build ( ) ; } } return javax . ws . rs . core . Response . status ( Response . Status . IDENT_26 ) . build ( ) ; }
org . junit . Assert . assertEquals ( Response . Status . IDENT_26 . getStatusCode ( ) , actual . getStatus ( ) )