METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . core . result . IDENT_2 IDENT_3 = mock ( com . IDENT_0 . IDENT_1 . core . result . IDENT_2 . class ) ; when ( IDENT_3 . METHOD_1 ( ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_3 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; com . IDENT_0 . IDENT_1 . core . run . IDENT_6 IDENT_7 = new com . IDENT_0 . IDENT_1 . core . run . METHOD_3 ( ) ; IDENT_7 . METHOD_4 ( IDENT_3 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( ) { if ( ( METHOD_2 ( ) ) == 0 ) { return 0 ; } int IDENT_8 = ( ( int ) ( ( ( ( double ) ( METHOD_1 ( ) ) ) / ( ( double ) ( METHOD_2 ( ) ) ) ) * FLOAT_0 ) ) ; return IDENT_8 <= 100 ? IDENT_8 : 100 ; }
org . junit . Assert . assertEquals ( IDENT_8 , IDENT_7 . METHOD_5 ( ) )