METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_3 IDENT_4 = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_3 . class ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 IDENT_6 = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 . class ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 IDENT_7 = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 . class ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 IDENT_8 = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 . class ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 IDENT_9 = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_5 . class ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . queue . IDENT_10 queue = new com . IDENT_0 . IDENT_1 . IDENT_2 . queue . METHOD_1 ( IDENT_4 ) ; queue . METHOD_2 ( IDENT_6 , IDENT_7 ) ; queue . METHOD_2 ( IDENT_8 , IDENT_9 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_4 , org . mockito . Mockito . times ( 1 ) ) . METHOD_3 ( IDENT_7 ) ; org . mockito . Mockito . verify ( IDENT_4 , org . mockito . Mockito . times ( 1 ) ) . METHOD_3 ( IDENT_9 ) ; } METHOD_4 ( int ) { int count = 0 ; while ( ( ( this . IDENT_11 ) != null ) && ( n > 0 ) ) { this . IDENT_4 . METHOD_3 ( this . IDENT_11 . METHOD_4 ) ; this . IDENT_11 = this . IDENT_11 . IDENT_12 ; n OP_0 ; count ++ ; } return count ; }
org . junit . Assert . assertEquals ( 2 , queue . METHOD_4 ( 2 ) )