METHOD_0 ( ) { org . apache . avro . Schema schema = load ( STRING_0 ) ; org . springframework . cloud . stream . schema . IDENT_0 client = mock ( org . springframework . cloud . stream . schema . IDENT_0 . class ) ; org . springframework . cloud . stream . codec . avro . IDENT_1 codec = new org . springframework . cloud . stream . codec . avro . METHOD_1 ( ) ; codec . METHOD_2 ( client ) ; when ( client . METHOD_3 ( any ( ) ) ) . thenReturn ( 1 ) ; when ( client . METHOD_4 ( eq ( 1 ) ) ) . thenReturn ( schema ) ; example . avro . User user = example . avro . User . METHOD_5 ( ) . setName ( STRING_1 ) . METHOD_6 ( STRING_2 ) . METHOD_7 ( INT_0 ) . build ( ) ; byte [ ] results = codec . encode ( user ) ; org . apache . avro . IDENT_2 . IDENT_3 IDENT_4 = codec . decode ( results , org . apache . avro . IDENT_2 . IDENT_3 . class ) ; "<AssertPlaceHolder>" ; } get ( int ) { switch ( IDENT_5 ) { case 0 : return name ; case 1 : return IDENT_6 ; case 2 : return IDENT_7 ; default : throw new org . apache . avro . METHOD_8 ( STRING_3 ) ; } }
org . junit . Assert . assertEquals ( user . getName ( ) . toString ( ) , IDENT_4 . get ( "name" ) . toString ( ) )