METHOD_0 ( ) { final org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_1 IDENT_2 = org . mockito . Mockito . mock ( org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_1 . class ) ; org . mockito . Mockito . doReturn ( true ) . when ( IDENT_2 ) . METHOD_1 ( ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; java . io . File IDENT_3 = new java . io . File ( new java . io . File ( org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_4 . IDENT_5 , STRING_0 ) , STRING_1 ) ; conf . set ( org . apache . hadoop . hdfs . IDENT_6 . IDENT_7 , IDENT_3 . METHOD_2 ( ) . toString ( ) ) ; org . mockito . Mockito . doReturn ( conf ) . when ( IDENT_2 ) . METHOD_3 ( ) ; org . mockito . Mockito . doReturn ( new org . apache . hadoop . hdfs . server . IDENT_0 . METHOD_4 ( IDENT_2 ) ) . when ( IDENT_2 ) . METHOD_5 ( ) ; org . mockito . Mockito . doReturn ( org . apache . hadoop . hdfs . server . IDENT_0 . metrics . IDENT_8 . create ( conf , STRING_2 ) ) . when ( IDENT_2 ) . METHOD_6 ( ) ; final java . util . concurrent . atomic . IDENT_9 count = new java . util . concurrent . atomic . METHOD_7 ( ) ; org . mockito . Mockito . METHOD_8 ( new org . mockito . IDENT_10 . IDENT_11 < java . lang . IDENT_12 > ( ) { @ org . apache . hadoop . hdfs . server . IDENT_0 . Override public org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_12 METHOD_9 ( org . mockito . IDENT_13 . IDENT_14 IDENT_13 ) throws java . lang . Throwable { if ( ( count . METHOD_10 ( ) ) == 0 ) { throw new java . io . IOException ( STRING_3 ) ; } org . mockito . Mockito . doReturn ( IDENT_15 ) . when ( IDENT_2 ) . METHOD_11 ( ) ; return null ; } } ) . when ( IDENT_2 ) . METHOD_12 ( org . mockito . Mockito . any ( org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_16 . class ) ) ; org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_16 IDENT_17 = METHOD_13 ( IDENT_2 , IDENT_18 , IDENT_19 ) ; java . util . List < org . apache . hadoop . hdfs . server . IDENT_0 . IDENT_20 > IDENT_21 = IDENT_17 . METHOD_14 ( ) ; "<AssertPlaceHolder>" ; IDENT_17 . start ( ) ; try { METHOD_15 ( IDENT_17 ) ; METHOD_16 ( IDENT_18 , IDENT_19 ) ; } finally { IDENT_17 . METHOD_17 ( ) ; IDENT_17 . join ( ) ; } } size ( ) { return IDENT_22 . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_21 . size ( ) )