METHOD_0 ( ) { org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_1 IDENT_2 = new org . apache . hadoop . hdfs . server . IDENT_0 . METHOD_1 ( ) { @ org . apache . hadoop . hdfs . Override public boolean METHOD_2 ( ) { return true ; } } ; org . apache . hadoop . hdfs . server . IDENT_0 . METHOD_1 IDENT_3 = org . apache . hadoop . hdfs . server . IDENT_0 . METHOD_1 . get ( ) ; org . apache . hadoop . hdfs . server . IDENT_0 . METHOD_1 . set ( IDENT_2 ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdfs . METHOD_3 ( ) ; conf . set ( IDENT_4 . IDENT_5 , STRING_0 ) ; org . apache . hadoop . hdfs . IDENT_6 cluster = null ; try { int IDENT_7 = 2 ; cluster = new org . apache . hadoop . hdfs . IDENT_6 . Builder ( conf ) . METHOD_4 ( METHOD_4 ) . build ( ) ; cluster . METHOD_5 ( ) ; org . apache . hadoop . fs . IDENT_8 fs = cluster . METHOD_6 ( ) ; org . apache . hadoop . fs . IDENT_9 out = fs . create ( new org . apache . hadoop . fs . Path ( STRING_1 ) , ( ( short ) ( 2 ) ) ) ; out . write ( INT_0 ) ; out . METHOD_7 ( ) ; org . apache . hadoop . hdfs . IDENT_10 IDENT_11 = ( ( org . apache . hadoop . hdfs . IDENT_10 ) ( out . METHOD_8 ( ) ) ) ; org . apache . hadoop . hdfs . protocol . IDENT_12 [ ] IDENT_13 = IDENT_11 . METHOD_9 ( ) ; java . lang . Thread . sleep ( INT_1 ) ; out . write ( 50 ) ; out . METHOD_7 ( ) ; org . apache . hadoop . hdfs . protocol . IDENT_12 [ ] IDENT_14 = IDENT_11 . METHOD_9 ( ) ; out . close ( ) ; boolean contains = false ; for ( int i = 0 ; i < ( IDENT_14 . length ) ; i ++ ) { if ( IDENT_13 [ 0 ] . METHOD_10 ( ) . equals ( IDENT_14 [ i ] . METHOD_10 ( ) ) ) { throw new java . io . IOException ( STRING_2 ) ; } if ( IDENT_13 [ 1 ] . METHOD_10 ( ) . equals ( IDENT_14 [ i ] . METHOD_10 ( ) ) ) { contains = true ; } } "<AssertPlaceHolder>" ; } finally { org . apache . hadoop . hdfs . server . IDENT_0 . METHOD_1 . set ( IDENT_3 ) ; if ( cluster != null ) { cluster . METHOD_11 ( ) ; } } } equals ( java . lang . Object ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o . getClass ( ) ) ) ) return false ; org . apache . hadoop . yarn . service . component . instance . IDENT_15 that = ( ( org . apache . hadoop . yarn . service . component . instance . IDENT_15 ) ( o ) ) ; if ( ( getId ( ) ) != ( that . getId ( ) ) ) return false ; return ( METHOD_12 ( ) ) != null ? METHOD_12 ( ) . equals ( that . METHOD_12 ( ) ) : ( that . METHOD_12 ( ) ) == null ; }
org . junit . Assert . assertTrue ( contains )