public void testDecodeAttributeBody() throws StunException {
  char offset=0;
  NonceAttribute decoded=new NonceAttribute();
  char length=(char)nonceValue.length();
  decoded.decodeAttributeBody(nonceValue.getBytes(),offset,length);
  assertEquals("decode failed",nonceAttribute,decoded);
}

public void testDecodeAttributeBody ( ) throws StunException { char offset = 0 ; NonceAttribute decoded = new NonceAttribute ( ) ; char length = ( char ) nonceValue . length ( ) ; decoded . decodeAttributeBody ( nonceValue . getBytes ( ) , offset , length ) ; assertEquals ( "decode failed" , nonceAttribute , decoded ) ; }
tests decoding of the nonce attribute .
