METHOD_0 ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . set ( IDENT_0 . IDENT_1 , STRING_0 ) ; conf . METHOD_1 ( IDENT_0 . IDENT_2 , INT_0 ) ; conf . METHOD_1 ( IDENT_3 . IDENT_4 , 0 ) ; org . apache . hadoop . hdfs . IDENT_5 cluster = new org . apache . hadoop . hdfs . IDENT_5 . Builder ( conf ) . METHOD_2 ( 1 ) . build ( ) ; final int IDENT_6 = INT_1 ; org . apache . hadoop . hdfs . IDENT_7 IDENT_8 = cluster . METHOD_3 ( ) ; try { org . apache . hadoop . hdfs . IDENT_9 . METHOD_4 ( IDENT_8 , new org . apache . hadoop . fs . Path ( STRING_1 ) , IDENT_6 , ( ( short ) ( 1 ) ) , org . apache . hadoop . hdfs . IDENT_10 . IDENT_11 ) ; org . apache . hadoop . fs . IDENT_12 stream = IDENT_8 . METHOD_5 ( new org . apache . hadoop . fs . Path ( STRING_1 ) ) ; byte [ ] buf = new byte [ IDENT_6 ] ; org . apache . hadoop . io . IDENT_13 . METHOD_6 ( stream , buf , 0 , IDENT_6 ) ; byte [ ] expected = org . apache . hadoop . hdfs . IDENT_9 . METHOD_7 ( org . apache . hadoop . hdfs . IDENT_10 . IDENT_11 , IDENT_6 ) ; "<AssertPlaceHolder>" ; stream . close ( ) ; } finally { IDENT_8 . close ( ) ; cluster . METHOD_8 ( ) ; } } METHOD_7 ( long , int ) { java . util . IDENT_14 IDENT_15 = new java . util . METHOD_9 ( IDENT_16 ) ; byte [ ] val = new byte [ length ] ; IDENT_15 . METHOD_10 ( val ) ; return val ; }
org . junit . Assert . assertArrayEquals ( expected , buf )