METHOD_0 ( ) { final java . util . List < Map . Entry < org . joda . time . IDENT_0 , com . IDENT_1 . IDENT_2 . metrics . IDENT_3 . IDENT_4 > > expected = com . IDENT_1 . IDENT_5 . remote . IDENT_6 . IDENT_7 . METHOD_1 ( ) . map ( ( IDENT_8 ) -> com . IDENT_1 . IDENT_2 . metrics . lib . IDENT_9 . create ( IDENT_8 . METHOD_2 ( ) , IDENT_8 . get ( com . IDENT_1 . IDENT_5 . remote . IDENT_6 . IDENT_7 . IDENT_10 ) . get ( ) ) ) . collect ( java . util . stream . IDENT_11 . toList ( ) ) ; when ( IDENT_6 . METHOD_0 ( org . mockito . Mockito . METHOD_3 ( org . joda . time . IDENT_0 . class ) , org . mockito . Mockito . any ( ) ) ) . METHOD_4 ( ( IDENT_12 ) -> expected . stream ( ) ) ; final java . util . List < Map . Entry < org . joda . time . IDENT_0 , com . IDENT_1 . IDENT_2 . metrics . IDENT_3 . IDENT_4 > > result = client . METHOD_0 ( com . IDENT_1 . IDENT_5 . remote . IDENT_6 . IDENT_7 . IDENT_13 , com . IDENT_1 . IDENT_5 . remote . IDENT_6 . IDENT_7 . IDENT_10 ) . collect ( java . util . stream . IDENT_11 . toList ( ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_6 , times ( 1 ) ) . METHOD_0 ( org . mockito . Mockito . eq ( com . IDENT_1 . IDENT_5 . remote . IDENT_6 . IDENT_7 . IDENT_13 ) , org . mockito . Mockito . eq ( com . IDENT_1 . IDENT_5 . remote . IDENT_6 . IDENT_7 . IDENT_10 ) ) ; METHOD_5 ( IDENT_6 ) ; } collect ( java . util . stream . IDENT_14 ) { try ( final java . util . stream . IDENT_15 < T > s = stream . get ( ) ) { return s . collect ( IDENT_16 ) ; } }
org . junit . Assert . assertEquals ( expected , result )