METHOD_0 ( ) { when ( update . METHOD_1 ( ) ) . thenReturn ( IDENT_0 . IDENT_1 ) ; final net . ripe . db . whois . common . IDENT_2 . IDENT_3 original = net . ripe . db . whois . common . IDENT_2 . IDENT_3 . parse ( STRING_0 ) ; when ( update . METHOD_2 ( ) ) . thenReturn ( original ) ; final net . ripe . db . whois . common . IDENT_2 . IDENT_3 IDENT_4 = net . ripe . db . whois . common . IDENT_2 . IDENT_3 . parse ( STRING_1 ) ; when ( update . METHOD_3 ( ) ) . thenReturn ( IDENT_4 ) ; when ( update . getType ( ) ) . thenReturn ( IDENT_5 . IDENT_6 ) ; final java . util . List < net . ripe . db . whois . common . IDENT_2 . IDENT_3 > IDENT_7 = com . google . common . collect . Lists . newArrayList ( net . ripe . db . whois . common . IDENT_2 . IDENT_3 . parse ( STRING_2 ) ) ; when ( IDENT_8 . METHOD_4 ( eq ( IDENT_5 . IDENT_9 ) , METHOD_5 ( ) ) ) . thenReturn ( IDENT_7 ) ; when ( IDENT_10 . METHOD_6 ( update , IDENT_11 , IDENT_7 ) ) . thenReturn ( IDENT_7 ) ; final java . util . List < net . ripe . db . whois . common . IDENT_2 . IDENT_3 > METHOD_6 = subject . METHOD_6 ( update , IDENT_11 ) ; "<AssertPlaceHolder>" ; METHOD_7 ( IDENT_12 ) ; } METHOD_6 ( net . ripe . db . whois . update . domain . IDENT_13 , net . ripe . db . whois . update . domain . IDENT_14 ) { final java . util . Collection < net . ripe . db . whois . common . domain . IDENT_15 > keys = update . METHOD_8 ( IDENT_16 . IDENT_17 ) ; final java . util . List < net . ripe . db . whois . common . IDENT_2 . IDENT_3 > IDENT_7 = IDENT_8 . METHOD_4 ( IDENT_5 . IDENT_18 , keys ) ; if ( METHOD_9 ( update , keys ) ) { IDENT_7 . add ( update . METHOD_3 ( ) ) ; } final java . util . List < net . ripe . db . whois . common . IDENT_2 . IDENT_3 > IDENT_19 = IDENT_10 . METHOD_6 ( update , IDENT_11 , IDENT_7 ) ; if ( IDENT_19 . isEmpty ( ) ) { throw new net . ripe . db . whois . update . authentication . strategy . METHOD_10 ( net . ripe . db . whois . update . domain . IDENT_20 . METHOD_11 ( update . METHOD_2 ( ) , IDENT_16 . IDENT_17 , IDENT_7 ) , IDENT_7 ) ; } return IDENT_19 ; }
org . junit . Assert . assertThat ( METHOD_6 , org . hamcrest . core . Is . is ( IDENT_7 ) )