METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . codec . IDENT_2 < java . lang . String > codec = new org . IDENT_0 . IDENT_1 . codec . METHOD_1 ( IDENT_3 , IDENT_4 ) ; when ( IDENT_4 . METHOD_2 ( resolver ) ) . thenReturn ( INT_0 ) ; when ( buffer . METHOD_3 ( org . mockito . Mockito . METHOD_4 ( ) ) ) . thenReturn ( METHOD_3 ) ; when ( IDENT_3 . decode ( any ( org . IDENT_0 . IDENT_1 . buffer . IDENT_5 . class ) , any ( org . IDENT_0 . IDENT_1 . IDENT_6 . class ) , any ( org . IDENT_0 . IDENT_1 . Builder . class ) ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 ) . METHOD_2 ( resolver ) ; verify ( buffer ) . METHOD_3 ( INT_0 ) ; verify ( IDENT_3 ) . decode ( METHOD_3 , resolver , builder ) ; METHOD_5 ( IDENT_3 , IDENT_4 , builder , buffer , METHOD_3 , resolver ) ; } decode ( org . IDENT_0 . IDENT_1 . buffer . IDENT_5 , org . IDENT_0 . IDENT_1 . codec . IDENT_6 , org . IDENT_0 . IDENT_1 . codec . Builder ) { int size = IDENT_4 . METHOD_2 ( resolver ) ; java . nio . ByteBuffer IDENT_7 = java . nio . ByteBuffer . METHOD_6 ( size ) ; byte IDENT_8 ; for ( int i = 0 ; i < size ; i ++ ) { IDENT_8 = IDENT_9 . convert ( buffer . METHOD_7 ( 8 ) ) ; IDENT_7 . put ( IDENT_8 ) ; } IDENT_7 . METHOD_8 ( ) ; java . lang . String result ; result = IDENT_10 . decode ( IDENT_7 ) . toString ( ) ; result = result . trim ( ) ; if ( ( match . length ( ) ) > 0 ) { if ( ! ( match . equals ( result ) ) ) { throw new org . IDENT_0 . IDENT_1 . codec . METHOD_9 ( new java . lang . IllegalStateException ( ( ( ( ( STRING_1 + ( match ) ) + STRING_2 ) + result ) + STRING_3 ) ) ) ; } } return result ; }
org . junit . Assert . assertThat ( codec . decode ( buffer , resolver , builder ) , org . hamcrest . Matchers . is ( STRING_0 ) )