METHOD_0 ( ) { org . springframework . validation . IDENT_0 e = new org . springframework . validation . METHOD_1 ( IDENT_1 ) ; java . lang . String field = "name" ; java . lang . String IDENT_2 = STRING_0 ; org . springframework . validation . IDENT_3 IDENT_4 = new org . springframework . validation . METHOD_2 ( STRING_1 , field , IDENT_2 ) ; java . util . List < org . springframework . validation . METHOD_2 > errors = java . util . Arrays . asList ( IDENT_4 ) ; org . lnu . is . resource . message . IDENT_5 < java . lang . String , java . lang . String > IDENT_6 = new org . lnu . is . resource . message . IDENT_5 < java . lang . String , java . lang . String > ( ) ; IDENT_6 . setName ( field ) ; IDENT_6 . setValue ( IDENT_2 ) ; java . util . List < org . lnu . is . resource . message . IDENT_5 < java . lang . String , java . lang . String > > IDENT_7 = java . util . Arrays . asList ( IDENT_6 ) ; org . lnu . is . resource . message . IDENT_8 expected = new org . lnu . is . resource . message . validation . METHOD_3 ( org . lnu . is . resource . message . IDENT_9 . IDENT_10 , STRING_2 , IDENT_7 ) ; when ( IDENT_1 . METHOD_4 ( ) ) . thenReturn ( errors ) ; org . lnu . is . resource . message . IDENT_8 actual = unit . METHOD_5 ( e ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . Exception ) { org . lnu . is . web . rest . handler . IDENT_11 . LOGGER . error ( STRING_3 , e ) ; org . lnu . is . resource . message . IDENT_8 message = new org . lnu . is . resource . message . METHOD_6 ( ) ; message . METHOD_7 ( IDENT_9 . IDENT_10 ) ; message . METHOD_8 ( e . getMessage ( ) ) ; return message ; }
org . junit . Assert . assertEquals ( expected , actual )