METHOD_0 ( ) { java . lang . String input = STRING_0 ; byte [ ] bytes = input . getBytes ( IDENT_0 . UTF_8 ) ; org . springframework . data . redis . serializer . IDENT_1 < java . lang . String > writer = new org . springframework . data . redis . serializer . METHOD_1 ( new org . springframework . data . redis . serializer . METHOD_2 ( java . nio . IDENT_2 . IDENT_0 . UTF_8 ) ) ; java . nio . ByteBuffer result = writer . write ( input ) ; "<AssertPlaceHolder>" ; } write ( T ) { if ( ( ( serializer ) != null ) && ( ( value == null ) || ( serializer . METHOD_3 ( value . getClass ( ) ) ) ) ) { return java . nio . ByteBuffer . METHOD_4 ( serializer . serialize ( value ) ) ; } if ( value instanceof byte [ ] ) { return java . nio . ByteBuffer . METHOD_4 ( ( ( byte [ ] ) ( value ) ) ) ; } if ( value instanceof java . nio . ByteBuffer ) { return ( ( java . nio . ByteBuffer ) ( value ) ) ; } throw new java . lang . IllegalStateException ( java . lang . String . format ( STRING_1 , value . getClass ( ) ) ) ; }
org . junit . Assert . assertThat ( result . array ( ) , is ( equalTo ( bytes ) ) )