METHOD_0 ( ) { when ( message . METHOD_1 ( ) ) . thenReturn ( STRING_0 ) ; when ( message . METHOD_2 ( ) ) . thenReturn ( STRING_1 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( net . ripe . db . whois . api . mail . IDENT_0 ) { java . lang . String IDENT_1 = message . METHOD_2 ( ) ; if ( IDENT_1 == null ) { IDENT_2 . log ( new net . ripe . db . whois . common . Message ( IDENT_3 . Type . IDENT_4 , STRING_2 ) ) ; return false ; } try { new javax . mail . IDENT_5 . METHOD_4 ( IDENT_1 , true ) ; } catch ( final javax . mail . IDENT_5 . IDENT_6 e ) { IDENT_2 . log ( new net . ripe . db . whois . common . Message ( IDENT_3 . Type . IDENT_4 , STRING_3 , IDENT_1 ) ) ; return false ; } if ( ! ( org . apache . commons . validator . IDENT_7 . IDENT_8 . getInstance ( ) . isValid ( IDENT_1 ) ) ) { IDENT_2 . log ( new net . ripe . db . whois . common . Message ( IDENT_3 . Type . IDENT_4 , STRING_3 , IDENT_1 ) ) ; return false ; } IDENT_1 = IDENT_1 . toLowerCase ( ) ; if ( ( IDENT_1 . METHOD_5 ( STRING_4 ) ) || ( IDENT_1 . METHOD_5 ( STRING_5 ) ) ) { IDENT_2 . log ( new net . ripe . db . whois . common . Message ( IDENT_3 . Type . IDENT_4 , STRING_6 , IDENT_1 ) ) ; return false ; } return true ; }
org . junit . Assert . assertThat ( subject . METHOD_3 ( message ) , org . hamcrest . Matchers . is ( false ) )