METHOD_0 ( ) { java . lang . Long id = 1L ; java . lang . String IDENT_0 = STRING_0 ; java . lang . String name = "name" ; org . lnu . is . domain . IDENT_1 . IDENT_2 expected = new org . lnu . is . domain . IDENT_1 . METHOD_1 ( ) ; expected . setId ( id ) ; expected . METHOD_2 ( IDENT_0 ) ; expected . setName ( name ) ; when ( IDENT_3 . METHOD_3 ( org . mockito . Matchers . < java . lang . Class < org . lnu . is . domain . IDENT_1 . METHOD_1 > > any ( ) , METHOD_4 ( ) ) ) . thenReturn ( expected ) ; org . lnu . is . domain . IDENT_1 . METHOD_1 actual = unit . METHOD_5 ( id ) ; verify ( IDENT_3 ) . METHOD_3 ( org . lnu . is . domain . IDENT_1 . METHOD_1 . class , id ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . Class , IDENT_4 ) { T entity = IDENT_5 . find ( clazz , id ) ; if ( entity == null ) { org . lnu . is . dao . persistence . IDENT_6 . LOG . error ( STRING_1 , clazz . METHOD_6 ( ) ) ; throw new org . lnu . is . dao . exception . METHOD_7 ( STRING_2 , clazz , id ) ; } verify ( IDENT_7 . IDENT_8 , entity ) ; return entity ; }
org . junit . Assert . assertEquals ( expected , actual )