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

public void testDecodeAttributeBody ( ) throws StunException { char offset = 0 ; UsernameAttribute decoded = new UsernameAttribute ( ) ; char length = ( char ) usernameValue . length ( ) ; decoded . decodeAttributeBody ( usernameValue . getBytes ( ) , offset , length ) ; assertEquals ( "decode failed" , usernameAttribute , decoded ) ; }
tests decoding of the username attribute .
