METHOD_0 ( ) { when ( context . METHOD_1 ( org . springframework . data . IDENT_0 . core . Person . class ) ) . thenReturn ( entity ) ; when ( entity . getType ( ) ) . thenReturn ( org . springframework . data . IDENT_0 . core . Person . class ) ; org . springframework . data . IDENT_0 . repository . support . IDENT_1 factory = new org . springframework . data . IDENT_0 . repository . support . METHOD_2 ( IDENT_2 ) ; org . springframework . data . repository . core . IDENT_3 < org . springframework . data . IDENT_0 . core . Person , java . io . IDENT_4 > IDENT_5 = factory . METHOD_3 ( org . springframework . data . IDENT_0 . core . Person . class ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . Class ) { org . springframework . data . IDENT_0 . mapping . IDENT_6 < ? > entity = context . METHOD_1 ( IDENT_7 ) ; if ( entity == null ) { throw new org . springframework . data . mapping . model . METHOD_4 ( java . lang . String . format ( STRING_0 , IDENT_7 . getName ( ) ) ) ; } return new org . springframework . data . repository . core . support . IDENT_8 < T , IDENT_9 > ( ( ( org . springframework . data . IDENT_0 . mapping . IDENT_6 < T > ) ( entity ) ) ) ; }
org . junit . Assert . assertTrue ( ( IDENT_5 instanceof org . springframework . data . repository . core . support . IDENT_8 ) )