METHOD_0 ( ) { org . apache . druid . server . IDENT_0 IDENT_1 = METHOD_1 ( IDENT_2 , IDENT_3 , new org . apache . druid . query . metadata . METHOD_2 ( STRING_0 ) ) ; java . util . Map < java . lang . String , java . lang . Object > expected = com . google . common . collect . ImmutableMap . of ( org . apache . druid . server . IDENT_4 . IDENT_5 , com . google . common . collect . IDENT_6 . of ( STRING_1 , STRING_2 0 , STRING_3 , STRING_4 , STRING_5 ) , org . apache . druid . server . IDENT_4 . IDENT_7 , com . google . common . collect . IDENT_6 . of ( STRING_6 , STRING_7 , STRING_8 , STRING_2 , STRING_9 ) ) ; java . util . Map < java . lang . String , java . lang . Object > actual = IDENT_1 . METHOD_3 ( IDENT_8 , null , null ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , java . lang . String , java . lang . String ) { if ( IDENT_9 == null ) { return com . google . common . collect . ImmutableMap . of ( org . apache . druid . server . IDENT_0 . IDENT_5 , METHOD_4 ( IDENT_10 , IDENT_11 ) , org . apache . druid . server . IDENT_0 . IDENT_7 , METHOD_5 ( IDENT_10 , IDENT_11 ) ) ; } org . joda . time . IDENT_12 IDENT_13 ; if ( ( IDENT_11 == null ) || ( IDENT_11 . isEmpty ( ) ) ) { org . joda . time . IDENT_14 now = METHOD_6 ( ) ; IDENT_13 = new org . joda . time . METHOD_7 ( IDENT_15 . METHOD_8 ( ) , now ) ; } else { IDENT_13 = org . apache . druid . java . util . common . IDENT_16 . of ( IDENT_11 ) ; } org . apache . druid . IDENT_17 . IDENT_18 < java . lang . String , org . apache . druid . client . IDENT_19 . IDENT_20 > IDENT_17 = IDENT_3 . METHOD_9 ( new org . apache . druid . query . METHOD_10 ( IDENT_10 ) ) ; java . lang . IDENT_21 < org . apache . druid . IDENT_17 . IDENT_22 < java . lang . String , org . apache . druid . client . IDENT_19 . IDENT_20 > > IDENT_23 = ( IDENT_17 != null ) ? IDENT_17 . METHOD_11 ( IDENT_13 ) : null ; if ( ( IDENT_23 == null ) || ( com . google . common . collect . IDENT_24 . isEmpty ( IDENT_23 ) ) ) { return java . util . Collections . IDENT_25 ; } java . util . Map < org . joda . time . METHOD_7 , java . lang . Object > IDENT_26 = new java . util . METHOD_12 ( new java . util . IDENT_27 < org . joda . time . METHOD_7 > ( ) { @ org . apache . druid . server . Override public int compare ( org . joda . time . METHOD_7 IDENT_28 , org . joda . time . METHOD_7 IDENT_29 ) { if ( ( IDENT_28 . equals ( IDENT_29 ) ) || ( IDENT_28 . METHOD_13 ( IDENT_29 ) ) ) { return 0 ; } else { return IDENT_28 . METHOD_14 ( IDENT_29 ) ? - 1 : 1 ; } } } ) ; for ( org . apache . druid . IDENT_17 . IDENT_22 < java . lang . String , org . apache . druid . client . IDENT_19 . IDENT_20 > IDENT_30 : IDENT_23 ) { final java . util . Set < java . lang . Object > IDENT_31 = new java . util . HashSet ( ) ; final java . util . Set < java . lang . Object > metrics = new java . util . HashSet ( ) ; final org . apache . druid . IDENT_17 . IDENT_32 . IDENT_33 < org . apache . druid . client . IDENT_19 . IDENT_20 > IDENT_34 = IDENT_30 . METHOD_15 ( ) ; if ( IDENT_34 . METHOD_16 ( ) ) { for ( org . apache . druid . client . IDENT_19 . IDENT_20 server : IDENT_34 . METHOD_17 ( ) ) { final org . apache . druid . IDENT_17 . IDENT_35 IDENT_36 = server . METHOD_18 ( ) ; IDENT_31 . addAll ( IDENT_36 . METHOD_19 ( ) ) ; metrics . addAll ( IDENT_36 . METHOD_20 ( ) ) ; } } IDENT_26 . put ( IDENT_30 . METHOD_21 ( ) , com . google . common . collect . ImmutableMap . of ( org . apache . druid . server . IDENT_0 . IDENT_5 , IDENT_31 , org . apache . druid . server . IDENT_0 . IDENT_7 , metrics ) ) ; } java . util . Map < java . lang . String , java . lang . Object > result = com . google . common . collect . IDENT_37 . METHOD_22 ( ) ; org . joda . time . METHOD_7 IDENT_38 = null ; java . util . Map < java . lang . String , java . util . Set < java . lang . String > > IDENT_39 = null ; for ( Map . Entry < org . joda . time . METHOD_7 , java . lang . Object > e : IDENT_26 . entrySet ( ) ) { org . joda . time . METHOD_7 IDENT_40 = e . getKey ( ) ; if ( ( ( IDENT_38 != null ) && ( IDENT_38 . METHOD_23 ( IDENT_40 ) ) ) && ( IDENT_39 . equals ( e . getValue ( ) ) ) ) { IDENT_38 = IDENT_38 . METHOD_24 ( IDENT_40 . METHOD_25 ( ) ) ; } else { if ( IDENT_38 != null ) { result . put ( IDENT_38 . toString ( ) , IDENT_39 ) ; } IDENT_38 = IDENT_40 ; IDENT_39 = ( ( java . util . Map < java . lang . String , java . util . Set < java . lang . String > > ) ( e . getValue ( ) ) ) ; } } if ( IDENT_38 != null ) { result . put ( IDENT_38 . toString ( ) , IDENT_39 ) ; } return result ; }
org . junit . Assert . assertEquals ( expected , actual )