METHOD_0 ( ) { org . finra . herd . dao . IDENT_0 IDENT_1 = IDENT_2 . METHOD_1 ( ) ; org . finra . herd . dao . IDENT_0 IDENT_3 = mock ( org . finra . herd . dao . IDENT_0 . class ) ; IDENT_2 . METHOD_2 ( IDENT_3 ) ; try { java . lang . String IDENT_4 = null ; java . lang . String IDENT_5 = STRING_0 ; java . lang . String IDENT_6 = STRING_1 ; when ( IDENT_3 . METHOD_3 ( any ( ) , any ( ) ) ) . thenReturn ( new com . amazonaws . services . IDENT_7 . model . METHOD_4 ( ) . METHOD_5 ( IDENT_6 ) . METHOD_6 ( IDENT_5 ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_3 ) . METHOD_3 ( eq ( IDENT_5 ) , any ( ) ) ; METHOD_7 ( IDENT_3 ) ; } finally { IDENT_2 . METHOD_2 ( IDENT_1 ) ; } } METHOD_8 ( java . lang . String , java . lang . String , java . lang . String ) { boolean IDENT_8 = org . apache . commons . lang3 . StringUtils . METHOD_9 ( IDENT_4 ) ; boolean IDENT_9 = org . apache . commons . lang3 . StringUtils . METHOD_9 ( IDENT_5 ) ; org . springframework . util . Assert . METHOD_10 ( ( IDENT_8 || IDENT_9 ) , STRING_2 ) ; org . finra . herd . model . dto . IDENT_10 IDENT_11 = METHOD_11 ( IDENT_12 ) ; if ( IDENT_8 ) { java . lang . String IDENT_13 = IDENT_4 . trim ( ) ; com . amazonaws . services . IDENT_7 . model . IDENT_14 cluster = IDENT_15 . METHOD_12 ( IDENT_13 , IDENT_11 ) ; org . springframework . util . Assert . METHOD_13 ( cluster , java . lang . String . format ( STRING_3 , IDENT_13 ) ) ; java . lang . String IDENT_16 = cluster . getStatus ( ) . METHOD_14 ( ) ; org . springframework . util . Assert . METHOD_10 ( METHOD_15 ( IDENT_16 ) , java . lang . String . format ( STRING_4 , IDENT_13 , java . util . Arrays . toString ( METHOD_16 ( ) ) , IDENT_16 ) ) ; if ( IDENT_9 ) { java . lang . String IDENT_17 = IDENT_5 . trim ( ) ; org . springframework . util . Assert . METHOD_10 ( cluster . getName ( ) . equalsIgnoreCase ( IDENT_17 ) , java . lang . String . format ( STRING_5 , cluster . getId ( ) , IDENT_17 , cluster . getName ( ) ) ) ; } return cluster . getId ( ) ; } else { java . lang . String IDENT_17 = IDENT_5 . trim ( ) ; com . amazonaws . services . IDENT_7 . model . METHOD_4 IDENT_18 = IDENT_15 . METHOD_3 ( IDENT_17 , IDENT_11 ) ; org . springframework . util . Assert . METHOD_13 ( IDENT_18 , java . lang . String . format ( STRING_6 , IDENT_17 ) ) ; return IDENT_18 . getId ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_6 , IDENT_2 . METHOD_8 ( IDENT_4 , IDENT_5 , null ) )