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

public void testDecodeAttributeBody ( ) throws StunException { char offset = 0 ; SoftwareAttribute decoded = new SoftwareAttribute ( ) ; char length = ( char ) softwareValue . length ( ) ; decoded . decodeAttributeBody ( softwareValue . getBytes ( ) , offset , length ) ; assertEquals ( "decode failed" , softwareAttribute , decoded ) ; }
tests decoding of the software attribute .
