public static final byte[] dataBytes = { (byte)0xd1, 0x01, 0x09, 0x54, 0x05, 0x65, 0x6e, 0x2d, 0x55, 0x53, 0x35,
0x30, 0x30 };
@Test
public void testEncode() throws Exception {
GenericControlRecord gcr = new GenericControlRecord(new GcTargetRecord(new UriRecord(
"file://localhost/Appli/CustomerBonus")));
gcr.setAction(new GcActionRecord(new TextRecord("add", Charset.forName("utf8"), Locale.US)));
gcr.setData(new GcDataRecord(new TextRecord("500", Locale.US)));