evaluate ( ) { final org . joda . time . IDENT_0 IDENT_1 = org . joda . time . IDENT_0 . METHOD_0 ( 1 ) ; final java . util . List < java . util . Collection < com . IDENT_2 . IDENT_3 . metrics . IDENT_4 . IDENT_5 . IDENT_6 > > expected = com . IDENT_2 . IDENT_7 . remote . IDENT_4 . IDENT_8 . METHOD_1 ( ) . collect ( java . util . stream . IDENT_9 . toList ( ) ) ; when ( IDENT_4 . evaluate ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . METHOD_2 ( org . joda . time . IDENT_0 . class ) ) ) . METHOD_3 ( ( IDENT_10 ) -> METHOD_1 ( ) ) ; final java . util . List < java . util . Collection < com . IDENT_2 . IDENT_3 . metrics . IDENT_4 . IDENT_5 . IDENT_6 > > result = client . evaluate ( METHOD_4 ( "name" , expr ) , IDENT_1 ) . collect ( java . util . stream . IDENT_9 . toList ( ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 , times ( 1 ) ) . evaluate ( org . mockito . Mockito . < java . util . Map > METHOD_5 ( org . hamcrest . Matchers . METHOD_6 ( org . hamcrest . Matchers . equalTo ( "name" ) , new com . IDENT_2 . IDENT_7 . remote . IDENT_4 . IDENT_8 . METHOD_7 ( expr ) ) ) , org . mockito . Mockito . eq ( IDENT_1 ) ) ; METHOD_8 ( IDENT_4 ) ; } collect ( java . util . stream . IDENT_11 ) { try ( final java . util . stream . IDENT_12 < T > s = stream . get ( ) ) { return s . collect ( IDENT_13 ) ; } }
org . junit . Assert . assertEquals ( expected , result )