METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 IDENT_4 = METHOD_1 ( STRING_0 ) ; doReturn ( com . google . common . collect . ImmutableList . of ( STRING_0 ) ) . when ( entity ) . METHOD_2 ( ) ; METHOD_3 ( entity ) ; METHOD_3 ( IDENT_4 ) ; context = new com . IDENT_0 . IDENT_1 . validation . IDENT_5 . METHOD_4 ( IDENT_6 ) ; "<AssertPlaceHolder>" ; } validate ( com . IDENT_0 . IDENT_1 . validation . IDENT_5 . METHOD_4 , com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_7 , com . IDENT_0 . IDENT_1 . validation . IDENT_8 . components . IDENT_9 ) { com . google . common . base . IDENT_10 . METHOD_5 ( context ) ; com . google . common . base . IDENT_10 . METHOD_5 ( IDENT_11 ) ; com . google . common . base . IDENT_10 . METHOD_5 ( path ) ; path = METHOD_6 ( IDENT_11 , "name" , path ) ; java . lang . String IDENT_12 = IDENT_11 . getName ( ) ; java . lang . String IDENT_13 = context . IDENT_6 . getName ( ) . toLowerCase ( ) ; if ( ( ! ( IDENT_12 . startsWith ( IDENT_13 ) ) ) && ( ! ( IDENT_14 . contains ( IDENT_12 ) ) ) ) { java . lang . String msg = java . lang . String . format ( STRING_1 , IDENT_12 , IDENT_13 ) ; return METHOD_7 ( msg , IDENT_11 , IDENT_12 , path ) ; } return METHOD_8 ( ) ; }
org . junit . Assert . assertTrue ( validator . validate ( context , entity , root ) . isEmpty ( ) )