METHOD_0 ( ) { final int IDENT_0 = 1 ; final org . joda . time . IDENT_1 IDENT_2 = org . joda . time . IDENT_1 . METHOD_1 ( 1 ) ; final java . util . List < java . util . Collection < com . IDENT_3 . IDENT_4 . metrics . IDENT_5 . IDENT_6 . IDENT_7 > > expected = com . IDENT_3 . IDENT_8 . remote . IDENT_5 . IDENT_9 . METHOD_2 ( ) . METHOD_3 ( IDENT_0 ) . collect ( java . util . stream . IDENT_10 . toList ( ) ) ; when ( IDENT_5 . evaluate ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . METHOD_4 ( org . joda . time . IDENT_1 . class ) ) ) . METHOD_5 ( ( IDENT_11 ) -> { return METHOD_2 ( ) . METHOD_3 ( IDENT_0 ) . map ( ( x ) -> { try { java . lang . Thread . sleep ( INT_0 ) ; } catch ( ex ) { java . util . logging . IDENT_12 . METHOD_6 ( . class . getName ( ) ) . log ( IDENT_13 . IDENT_14 , null , com . IDENT_3 . IDENT_8 . remote . IDENT_5 . ex ) ; } java . util . logging . IDENT_12 . METHOD_6 ( . class . getName ( ) ) . log ( IDENT_13 . IDENT_15 , STRING_0 , x ) ; return x ; } ) ; } ) ; final java . util . List < java . util . Collection < com . IDENT_3 . IDENT_4 . metrics . IDENT_5 . IDENT_6 . IDENT_7 > > result = client . evaluate ( METHOD_7 ( "name" , expr ) , IDENT_2 ) . collect ( java . util . stream . IDENT_10 . toList ( ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_5 , times ( 1 ) ) . evaluate ( org . mockito . Mockito . < java . util . Map > METHOD_8 ( org . hamcrest . Matchers . METHOD_9 ( org . hamcrest . Matchers . equalTo ( "name" ) , new com . IDENT_3 . IDENT_8 . remote . IDENT_5 . IDENT_9 . METHOD_10 ( expr ) ) ) , org . mockito . Mockito . eq ( IDENT_2 ) ) ; METHOD_11 ( IDENT_5 ) ; } collect ( java . util . stream . IDENT_16 ) { try ( final java . util . stream . IDENT_17 < T > s = stream . get ( ) ) { return s . collect ( IDENT_18 ) ; } }
org . junit . Assert . assertEquals ( expected , result )