METHOD_0 ( ) { br . com . IDENT_0 . IDENT_1 . validator . Message message = mock ( br . com . IDENT_0 . IDENT_1 . validator . Message . class ) ; when ( message . getMessage ( ) ) . thenReturn ( java . text . IDENT_2 . format ( IDENT_3 . getString ( STRING_0 ) , "name" ) ) ; when ( validator . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( message ) ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . Object [ ] ) { br . com . IDENT_0 . IDENT_1 . validator . IDENT_4 IDENT_5 = new br . com . IDENT_0 . IDENT_1 . validator . METHOD_3 ( STRING_1 , IDENT_6 , IDENT_7 ) ; IDENT_5 . METHOD_4 ( java . util . IDENT_8 . METHOD_5 ( STRING_2 ) ) ; for ( br . com . IDENT_0 . IDENT_1 . validator . Message error : this . METHOD_1 ( ) ) { if ( IDENT_5 . getMessage ( ) . equals ( error . getMessage ( ) ) ) { return true ; } } return false ; }
org . junit . Assert . assertTrue ( validator . METHOD_2 ( STRING_0 , "name" ) )