METHOD_0 ( ) { final org . apache . druid . server . IDENT_0 . cache . IDENT_1 IDENT_2 = new org . apache . druid . server . IDENT_0 . cache . METHOD_1 ( STRING_0 , com . google . common . collect . ImmutableMap . of ( STRING_1 , STRING_2 ) ) ; final org . apache . druid . server . IDENT_0 . cache . METHOD_1 IDENT_0 = new org . apache . druid . server . IDENT_0 . cache . METHOD_1 ( STRING_0 , com . google . common . collect . ImmutableMap . of ( STRING_1 , "foo" ) ) ; final org . apache . druid . server . IDENT_0 . cache . IDENT_3 manager = new org . apache . druid . server . IDENT_0 . cache . METHOD_2 ( client , IDENT_4 , mapper , IDENT_5 , IDENT_6 ) { @ org . apache . druid . server . IDENT_0 . cache . Override public java . util . Map < java . lang . String , java . util . Map < java . lang . String , org . apache . druid . server . IDENT_0 . cache . METHOD_1 > > METHOD_3 ( ) { return com . google . common . collect . ImmutableMap . of ( org . apache . druid . server . IDENT_0 . cache . IDENT_7 . IDENT_8 , com . google . common . collect . ImmutableMap . of ( "foo" , IDENT_0 , STRING_2 , IDENT_2 ) ) ; } } ; manager . start ( ) ; final org . apache . druid . IDENT_9 . IDENT_10 IDENT_11 = new org . apache . druid . IDENT_9 . METHOD_4 ( STRING_3 , STRING_4 , STRING_5 ) ; org . easymock . EasyMock . METHOD_5 ( IDENT_5 ) ; org . easymock . EasyMock . expect ( IDENT_5 . set ( org . easymock . EasyMock . eq ( METHOD_2 . IDENT_12 ) , org . easymock . EasyMock . eq ( com . google . common . collect . ImmutableMap . of ( org . apache . druid . server . IDENT_0 . cache . IDENT_7 . IDENT_8 , com . google . common . collect . ImmutableMap . of ( STRING_2 , IDENT_2 ) ) ) , org . easymock . EasyMock . eq ( IDENT_11 ) ) ) . andReturn ( org . apache . druid . common . config . IDENT_13 . IDENT_14 . METHOD_6 ( ) ) . METHOD_7 ( ) ; org . easymock . EasyMock . replay ( IDENT_5 ) ; "<AssertPlaceHolder>" ; org . easymock . EasyMock . verify ( IDENT_5 ) ; } METHOD_8 ( java . lang . String , java . lang . String , org . apache . druid . IDENT_9 . METHOD_4 ) { com . google . common . base . IDENT_15 . METHOD_9 ( IDENT_16 . METHOD_10 ( 5 , TimeUnit . IDENT_17 ) , STRING_6 ) ; MOD_0 ( this ) { final java . util . Map < java . lang . String , java . util . Map < java . lang . String , org . apache . druid . server . IDENT_0 . cache . METHOD_1 > > IDENT_18 = METHOD_3 ( ) ; if ( IDENT_18 == null ) { org . apache . druid . server . IDENT_0 . cache . METHOD_2 . LOG . warn ( STRING_7 , IDENT_19 , IDENT_0 ) ; return false ; } final java . util . Map < java . lang . String , java . util . Map < java . lang . String , org . apache . druid . server . IDENT_0 . cache . METHOD_1 > > IDENT_20 = new java . util . HashMap ( IDENT_18 ) ; final java . util . Map < java . lang . String , org . apache . druid . server . IDENT_0 . cache . METHOD_1 > IDENT_21 = IDENT_20 . get ( IDENT_19 ) ; if ( IDENT_21 == null ) { org . apache . druid . server . IDENT_0 . cache . METHOD_2 . LOG . warn ( STRING_8 , IDENT_19 , IDENT_0 ) ; return false ; } if ( ! ( IDENT_21 . containsKey ( IDENT_0 ) ) ) { org . apache . druid . server . IDENT_0 . cache . METHOD_2 . LOG . warn ( STRING_9 , IDENT_19 , IDENT_0 ) ; return false ; } final java . util . Map < java . lang . String , org . apache . druid . server . IDENT_0 . cache . METHOD_1 > IDENT_22 = new java . util . HashMap ( IDENT_21 ) ; IDENT_22 . remove ( IDENT_0 ) ; IDENT_20 . put ( IDENT_19 , IDENT_22 ) ; return IDENT_5 . set ( org . apache . druid . server . IDENT_0 . cache . METHOD_2 . IDENT_12 , IDENT_20 , IDENT_11 ) . METHOD_11 ( ) ; } }
org . junit . Assert . assertTrue ( manager . METHOD_8 ( org . apache . druid . server . IDENT_0 . cache . IDENT_7 . IDENT_8 , "foo" , IDENT_11 ) )