METHOD_0 ( ) { final net . ripe . db . whois . common . IDENT_0 . IDENT_1 IDENT_2 = net . ripe . db . whois . common . IDENT_0 . IDENT_1 . parse ( ( "" + ( STRING_0 + STRING_1 ) ) ) ; when ( update . METHOD_1 ( ) ) . thenReturn ( IDENT_3 . IDENT_4 ) ; when ( update . METHOD_2 ( ) ) . thenReturn ( IDENT_2 ) ; when ( update . METHOD_3 ( ) ) . thenReturn ( IDENT_2 ) ; when ( update . getType ( ) ) . thenReturn ( IDENT_2 . getType ( ) ) ; final java . util . ArrayList < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > IDENT_5 = com . google . common . collect . Lists . newArrayList ( net . ripe . db . whois . common . IDENT_0 . IDENT_1 . parse ( STRING_2 ) ) ; when ( IDENT_6 . METHOD_4 ( IDENT_7 . IDENT_8 , METHOD_5 ( STRING_3 ) ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_9 . METHOD_6 ( update , IDENT_10 , IDENT_5 ) ) . thenReturn ( com . google . common . collect . Lists . < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > newArrayList ( ) ) ; final net . ripe . db . whois . common . IDENT_11 . IDENT_12 parent = new net . ripe . db . whois . common . IDENT_11 . METHOD_7 ( net . ripe . db . whois . common . IDENT_13 . IDENT_14 . parse ( STRING_4 ) , 1 ) ; when ( IDENT_15 . METHOD_8 ( net . ripe . db . whois . common . IDENT_13 . IDENT_14 . parse ( IDENT_2 . getKey ( ) ) ) ) . thenReturn ( com . google . common . collect . Lists . newArrayList ( parent ) ) ; final net . ripe . db . whois . common . IDENT_0 . IDENT_1 IDENT_16 = net . ripe . db . whois . common . IDENT_0 . IDENT_1 . parse ( ( "" + ( STRING_5 + STRING_6 ) ) ) ; when ( IDENT_6 . METHOD_9 ( 1 ) ) . thenReturn ( IDENT_16 ) ; final java . util . List < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > IDENT_17 = com . google . common . collect . Lists . newArrayList ( net . ripe . db . whois . common . IDENT_0 . IDENT_1 . parse ( STRING_7 ) ) ; when ( IDENT_6 . METHOD_4 ( IDENT_7 . IDENT_8 , METHOD_5 ( STRING_8 ) ) ) . thenReturn ( IDENT_17 ) ; when ( IDENT_9 . METHOD_6 ( eq ( update ) , eq ( IDENT_10 ) , METHOD_10 ( new org . mockito . IDENT_18 < java . util . Collection < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > > ( ) { @ net . ripe . db . whois . update . authentication . strategy . Override public boolean matches ( final java . lang . Object IDENT_19 ) { return ( ( java . util . Collection < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > ) ( IDENT_19 ) ) . METHOD_11 ( IDENT_17 ) ; } } ) ) ) . thenReturn ( IDENT_17 ) ; final java . util . List < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > IDENT_20 = subject . METHOD_6 ( update , IDENT_10 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_21 ) . METHOD_12 ( METHOD_5 ( STRING_8 ) ) ; verify ( IDENT_21 ) . METHOD_12 ( METHOD_5 ( ) ) ; METHOD_13 ( IDENT_21 ) ; } METHOD_6 ( net . ripe . db . whois . update . domain . IDENT_22 , net . ripe . db . whois . update . domain . IDENT_23 ) { final java . util . Collection < net . ripe . db . whois . common . domain . IDENT_24 > keys = update . METHOD_14 ( IDENT_25 . IDENT_26 ) ; final java . util . List < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > IDENT_27 = IDENT_6 . METHOD_4 ( IDENT_7 . IDENT_28 , keys ) ; if ( METHOD_15 ( update , keys ) ) { IDENT_27 . add ( update . METHOD_3 ( ) ) ; } final java . util . List < net . ripe . db . whois . common . IDENT_0 . IDENT_1 > IDENT_29 = IDENT_9 . METHOD_6 ( update , IDENT_10 , IDENT_27 ) ; if ( IDENT_29 . isEmpty ( ) ) { throw new net . ripe . db . whois . update . authentication . strategy . METHOD_16 ( net . ripe . db . whois . update . domain . IDENT_30 . METHOD_17 ( update . METHOD_2 ( ) , IDENT_25 . IDENT_26 , IDENT_27 ) , IDENT_27 ) ; } return IDENT_29 ; }
org . junit . Assert . assertThat ( IDENT_20 , org . hamcrest . core . Is . is ( IDENT_17 ) )