METHOD_0 ( ) { final org . apache . druid . client . cache . IDENT_0 cache = org . apache . druid . client . cache . IDENT_0 . create ( IDENT_1 ) ; final org . apache . druid . java . util . IDENT_2 . core . IDENT_3 IDENT_2 = org . easymock . EasyMock . METHOD_1 ( org . apache . druid . java . util . IDENT_2 . core . IDENT_3 . class ) ; final java . util . Collection < org . apache . druid . java . util . IDENT_2 . core . IDENT_4 > events = new java . util . ArrayList ( ) ; final org . apache . druid . java . util . IDENT_2 . service . IDENT_5 IDENT_6 = new org . apache . druid . java . util . IDENT_2 . service . METHOD_2 ( STRING_0 , STRING_1 , IDENT_2 ) { @ org . apache . druid . client . cache . Override public void METHOD_3 ( org . apache . druid . java . util . IDENT_2 . core . IDENT_4 event ) { events . add ( event ) ; } } ; while ( events . isEmpty ( ) ) { java . lang . Thread . sleep ( IDENT_1 . METHOD_4 ( ) ) ; cache . METHOD_5 ( IDENT_6 ) ; } "<AssertPlaceHolder>" ; com . fasterxml . jackson . databind . IDENT_7 mapper = new org . apache . druid . jackson . METHOD_6 ( ) ; for ( org . apache . druid . java . util . IDENT_2 . core . IDENT_4 event : events ) { org . apache . druid . client . cache . IDENT_8 . log . debug ( STRING_2 , mapper . METHOD_7 ( event . METHOD_8 ( ) ) ) ; } } isEmpty ( ) { return ( length ( ) ) == 0 ; }
org . junit . Assert . assertFalse ( events . isEmpty ( ) )