METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . javascript . IDENT_2 object = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . javascript . IDENT_2 . class ) ; java . lang . String IDENT_3 = STRING_0 ; when ( object . METHOD_1 ( ) ) . thenReturn ( STRING_1 ) ; com . IDENT_0 . IDENT_1 . javascript . IDENT_4 IDENT_5 = ( ( com . IDENT_0 . IDENT_1 . javascript . IDENT_4 ) ( com . IDENT_0 . IDENT_1 . javascript . IDENT_4 . getInstance ( ) ) ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . Object ) { if ( IDENT_6 instanceof com . IDENT_0 . IDENT_1 . javascript . IDENT_2 ) { return ( ( com . IDENT_0 . IDENT_1 . javascript . IDENT_2 ) ( IDENT_6 ) ) . METHOD_1 ( ) ; } else if ( IDENT_6 instanceof com . IDENT_0 . IDENT_1 . javascript . IDENT_7 ) { return ( ( com . IDENT_0 . IDENT_1 . javascript . IDENT_7 ) ( IDENT_6 ) ) . METHOD_3 ( ) . toString ( ) ; } else { return IDENT_6 . toString ( ) ; } }
org . junit . Assert . assertEquals ( STRING_1 , IDENT_5 . METHOD_2 ( object ) )