METHOD_0 ( ) { org . apache . hadoop . hdfs . IDENT_0 cluster = null ; try { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdfs . METHOD_1 ( ) ; conf . METHOD_2 ( IDENT_1 . IDENT_2 , 1 ) ; cluster = new org . apache . hadoop . hdfs . IDENT_0 . Builder ( conf ) . METHOD_3 ( 3 ) . METHOD_4 ( 1 ) . build ( ) ; org . apache . hadoop . fs . IDENT_3 fs = cluster . METHOD_5 ( ) ; org . apache . hadoop . fs . Path IDENT_4 = new org . apache . hadoop . fs . Path ( STRING_0 ) ; org . apache . hadoop . fs . IDENT_5 create = fs . create ( IDENT_4 ) ; fs . METHOD_6 ( IDENT_4 , ( ( short ) ( 1 ) ) ) ; create . write ( new byte [ INT_0 ] ) ; create . close ( ) ; org . apache . hadoop . hdfs . protocol . IDENT_6 block = org . apache . hadoop . hdfs . IDENT_7 . METHOD_7 ( fs , IDENT_4 ) ; int IDENT_8 = 0 ; for ( final org . apache . hadoop . hdfs . server . IDENT_9 . IDENT_10 IDENT_11 : cluster . METHOD_8 ( ) ) { if ( ! ( IDENT_11 . METHOD_9 ( ) . contains ( block ) ) ) { cluster . METHOD_10 ( IDENT_11 ) . METHOD_11 ( block ) ; IDENT_8 ++ ; } } "<AssertPlaceHolder>" ; fs . METHOD_6 ( IDENT_4 , ( ( short ) ( 3 ) ) ) ; cluster . METHOD_12 ( ) ; cluster . METHOD_13 ( ) ; cluster . METHOD_14 ( ) ; org . apache . hadoop . hdfs . IDENT_7 . METHOD_15 ( fs , IDENT_4 , ( ( short ) ( 3 ) ) ) ; } finally { if ( cluster != null ) { cluster . METHOD_16 ( ) ; } } } METHOD_11 ( org . apache . hadoop . hdfs . protocol . IDENT_6 ) { com . google . common . base . IDENT_12 . METHOD_17 ( ( ! ( dataset . contains ( block ) ) ) , ( ( STRING_1 + block ) + STRING_2 ) ) ; try ( org . apache . hadoop . hdfs . server . IDENT_9 . IDENT_13 . IDENT_14 . IDENT_15 IDENT_16 = dataset . METHOD_18 ( ) ) { org . apache . hadoop . hdfs . server . IDENT_9 . IDENT_13 . impl . IDENT_17 IDENT_18 = ( ( org . apache . hadoop . hdfs . server . IDENT_9 . IDENT_13 . impl . IDENT_17 ) ( IDENT_16 . get ( 0 ) ) ) ; org . apache . hadoop . hdfs . server . IDENT_9 . IDENT_19 IDENT_20 = new org . apache . hadoop . hdfs . server . IDENT_9 . METHOD_19 ( block . METHOD_20 ( ) , IDENT_18 , IDENT_18 . METHOD_21 ( block . METHOD_22 ( ) ) ) ; java . io . File IDENT_21 = IDENT_20 . METHOD_23 ( ) ; if ( ! ( IDENT_21 . METHOD_24 ( ) ) ) { throw new org . apache . commons . io . METHOD_25 ( ( ( STRING_3 + IDENT_21 ) + STRING_4 ) ) ; } java . io . File IDENT_22 = org . apache . hadoop . hdfs . server . IDENT_9 . IDENT_13 . impl . IDENT_23 . METHOD_26 ( IDENT_21 , 1000 ) ; if ( ! ( IDENT_22 . METHOD_24 ( ) ) ) { throw new org . apache . commons . io . METHOD_25 ( ( ( STRING_5 + IDENT_22 ) + STRING_4 ) ) ; } dataset . IDENT_24 . add ( block . METHOD_22 ( ) , IDENT_20 ) ; } }
org . junit . Assert . assertEquals ( 2 , IDENT_8 )