METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( any ( com . amazonaws . services . IDENT_1 . model . IDENT_2 . class ) ) ) . METHOD_2 ( new com . amazonaws . services . IDENT_1 . model . METHOD_3 ( STRING_0 ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_3 . METHOD_4 ( ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_4 . METHOD_5 ( ) ) . thenReturn ( false ) ; when ( IDENT_4 . METHOD_6 ( ) ) . thenReturn ( IDENT_5 . IDENT_6 . name ( ) ) ; java . util . List < com . amazonaws . services . IDENT_1 . model . IDENT_7 > IDENT_8 = java . util . Collections . singletonList ( IDENT_9 ) ; when ( IDENT_4 . METHOD_7 ( ) ) . thenReturn ( IDENT_8 ) ; java . util . List < com . amazonaws . services . IDENT_1 . model . IDENT_7 > IDENT_10 = proxy . METHOD_8 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 , times ( 2 ) ) . METHOD_1 ( any ( com . amazonaws . services . IDENT_1 . model . IDENT_2 . class ) ) ; verify ( IDENT_3 , times ( 3 ) ) . METHOD_4 ( ) ; verify ( IDENT_4 ) . METHOD_6 ( ) ; verify ( IDENT_4 ) . METHOD_9 ( ) ; } METHOD_8 ( ) { if ( ( IDENT_11 ) == null ) { IDENT_11 = new com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . METHOD_10 ( ) ; } if ( ( METHOD_11 ( ) ) == ( com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . IDENT_15 . IDENT_16 ) ) { com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . LOG . info ( STRING_1 ) ; return null ; } if ( ( IDENT_11 . size ( ) ) < ( com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . IDENT_17 ) ) { int IDENT_18 = 0 ; while ( ( ( IDENT_11 . METHOD_12 ( ) ) > 0 ) && ( IDENT_18 < ( IDENT_19 ) ) ) { final long IDENT_20 = METHOD_13 ( IDENT_18 ) ; java . lang . String IDENT_21 = java . lang . String . format ( STRING_2 , IDENT_18 , IDENT_20 ) ; com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . LOG . info ( IDENT_21 ) ; IDENT_22 . sleep ( IDENT_20 ) ; com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . IDENT_15 IDENT_23 = METHOD_14 ( ) ; if ( IDENT_23 . equals ( com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . IDENT_15 . IDENT_16 ) ) { com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . LOG . info ( STRING_1 ) ; return null ; } else if ( IDENT_23 . equals ( com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . IDENT_15 . IDENT_24 ) ) { IDENT_21 = java . lang . String . format ( ( STRING_3 + STRING_4 ) , ( IDENT_18 + 1 ) ) ; com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . LOG . info ( IDENT_21 ) ; break ; } IDENT_18 ++ ; } if ( ( IDENT_18 == ( IDENT_19 ) ) && ( ( IDENT_11 . METHOD_12 ( ) ) > 0 ) ) { com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . LOG . warn ( STRING_5 ) ; } } else { if ( ( IDENT_11 . METHOD_12 ( ) ) > 0 ) { java . lang . String msg = java . lang . String . format ( STRING_6 , IDENT_11 . METHOD_12 ( ) ) ; com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . LOG . debug ( msg ) ; } } this . IDENT_25 . set ( IDENT_11 . METHOD_7 ( ) ) ; this . IDENT_11 = new com . amazonaws . services . IDENT_12 . IDENT_13 . IDENT_14 . METHOD_10 ( ) ; return IDENT_25 . get ( ) ; }
org . junit . Assert . assertThat ( IDENT_10 , org . hamcrest . Matchers . equalTo ( IDENT_8 ) )