METHOD_0 ( ) { org . jboss . IDENT_0 . container . IDENT_1 engine = mock ( org . jboss . IDENT_0 . container . IDENT_1 . class ) ; org . jboss . IDENT_0 . container . IDENT_2 IDENT_3 = mock ( org . jboss . IDENT_0 . container . IDENT_2 . class ) ; org . jboss . IDENT_0 . load . IDENT_4 . impl . IDENT_5 state = mock ( org . jboss . IDENT_0 . load . IDENT_4 . impl . IDENT_5 . class ) ; org . jboss . IDENT_0 . load . IDENT_4 . IDENT_6 IDENT_4 = new org . jboss . IDENT_0 . load . IDENT_4 . impl . METHOD_1 ( state ) ; when ( engine . METHOD_2 ( ) ) . thenReturn ( java . util . Collections . METHOD_3 ( IDENT_3 ) ) ; when ( IDENT_3 . METHOD_4 ( ) ) . thenReturn ( INT_0 ) ; when ( state . METHOD_5 ( FLOAT_0 ) ) . thenReturn ( FLOAT_1 ) ; double load = IDENT_4 . METHOD_0 ( engine ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( org . jboss . IDENT_0 . container . IDENT_1 ) { double load = this . bean . METHOD_6 ( ) ; if ( load < 0 ) { IDENT_7 . LOGGER . METHOD_7 ( this . getClass ( ) . METHOD_8 ( ) ) ; this . METHOD_9 ( 0 ) ; return 0 ; } return load / ( this . bean . METHOD_10 ( ) ) ; }
org . junit . Assert . assertEquals ( FLOAT_1 , load , 0.0 )