### Question:
Param { public abstract String getValueString(); Param(final D domain, final T value); static String toSortedString(final String separator,
      final Param<?, ?>... parameters); final T getValue(); abstract String getValueString(); abstract String getName(); @Override String toString();  }### Answer:
@Test public void testXAttrEncodingParam() { final XAttrEncodingParam p = new XAttrEncodingParam(XAttrCodec.BASE64); Assert.assertEquals(p.getEncoding(), XAttrCodec.BASE64); final XAttrEncodingParam p1 = new XAttrEncodingParam(p.getValueString()); Assert.assertEquals(p1.getEncoding(), XAttrCodec.BASE64); }
@Test public void testXAttrSetFlagParam() { EnumSet<XAttrSetFlag> flag = EnumSet.of( XAttrSetFlag.CREATE, XAttrSetFlag.REPLACE); final XAttrSetFlagParam p = new XAttrSetFlagParam(flag); Assert.assertEquals(p.getFlag(), flag); final XAttrSetFlagParam p1 = new XAttrSetFlagParam(p.getValueString()); Assert.assertEquals(p1.getFlag(), flag); }