METHOD_0 ( ) { com . google . api . client . http . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( com . google . api . client . http . IDENT_0 . class ) ; org . mockito . Mockito . when ( IDENT_1 . getStatusCode ( ) ) . thenReturn ( IDENT_2 . IDENT_3 ) ; com . google . cloud . tools . IDENT_4 . registry . json . IDENT_5 IDENT_6 = new com . google . cloud . tools . IDENT_4 . registry . json . METHOD_1 ( ) . METHOD_2 ( new com . google . cloud . tools . IDENT_4 . registry . json . METHOD_3 ( IDENT_7 . IDENT_8 . name ( ) , STRING_0 ) ) . METHOD_2 ( new com . google . cloud . tools . IDENT_4 . registry . json . METHOD_3 ( IDENT_7 . IDENT_9 . name ( ) , STRING_0 ) ) ; org . mockito . Mockito . when ( IDENT_1 . METHOD_4 ( ) ) . thenReturn ( com . google . cloud . tools . IDENT_4 . IDENT_10 . IDENT_11 . METHOD_5 ( com . google . cloud . tools . IDENT_4 . json . IDENT_12 . METHOD_6 ( IDENT_6 ) ) ) ; try { IDENT_13 . METHOD_7 ( IDENT_1 ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( com . google . api . client . http . IDENT_0 ex ) { "<AssertPlaceHolder>" ; } } METHOD_7 ( com . google . api . client . http . IDENT_0 ) { if ( ( IDENT_14 . getStatusCode ( ) ) != ( com . google . api . client . http . IDENT_2 . IDENT_15 ) ) { throw IDENT_14 ; } java . lang . String IDENT_16 = IDENT_14 . METHOD_8 ( ) . METHOD_9 ( ) ; if ( IDENT_16 == null ) { throw new com . google . cloud . tools . IDENT_4 . registry . METHOD_10 ( METHOD_11 ( ) , IDENT_14 ) . METHOD_12 ( STRING_2 ) . build ( ) ; } try { return com . google . cloud . tools . IDENT_4 . registry . IDENT_17 . METHOD_13 ( IDENT_16 , IDENT_18 , IDENT_19 ) ; } catch ( com . google . cloud . tools . IDENT_4 . registry . IDENT_20 ex ) { throw new com . google . cloud . tools . IDENT_4 . registry . METHOD_10 ( METHOD_11 ( ) , ex ) . METHOD_12 ( STRING_3 ) . build ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_1 , ex )