public void testEncode(){
  optionalAttribute.setBody(expectedAttributeValue,0,expectedAttributeValue.length);
  byte[] actualReturn=optionalAttribute.encode();
  assertTrue("encode failed",Arrays.equals(msgFixture.unknownOptionalAttribute,actualReturn));
}

public void testEncode ( ) { optionalAttribute . setBody ( expectedAttributeValue , 0 , expectedAttributeValue . length ) ; byte [ ] actualReturn = optionalAttribute . encode ( ) ; assertTrue ( "encode failed" , Arrays . equals ( msgFixture . unknownOptionalAttribute , actualReturn ) ) ; }
test whether attributes are properly encoded
