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