0x64, 0x64, (byte)0xd1, 0x01, 0x0d, 0x64, (byte)0xd1, 0x01, 0x09, 0x54, 0x05, 0x65, 0x6e, 0x2d, 0x55, 0x53,
0x35, 0x30, 0x30 };
@Test
public void testDecodeGenericControlRecordFromSpec() throws Exception {
GenericControlRecord gcr = messageDecoder.decodeToRecord(payload);
assertTrue(gcr.getTarget().getTargetIdentifier() instanceof UriRecord);
UriRecord uriRecord = (UriRecord)gcr.getTarget().getTargetIdentifier();
assertEquals("file://localhost/Appli/CustomerBonus", uriRecord.getUri());
assertTrue(gcr.getAction().hasActionRecord());
assertTrue(gcr.getAction().getActionRecord() instanceof TextRecord);
TextRecord actionTextRecord = (TextRecord)gcr.getAction().getActionRecord();
assertEquals("add", actionTextRecord.getText());
assertEquals(1, gcr.getData().getRecords().size());
}