CCNxTlvDictionary *
ccnxCodecSchemaV1TlvDictionary_CreateInterest(void)
{
    CCNxTlvDictionary *dictionary = ccnxTlvDictionary_Create(CCNxCodecSchemaV1TlvDictionary_MessageFastArray_END, CCNxCodecSchemaV1TlvDictionary_Lists_END);
    ccnxTlvDictionary_SetMessageType_Interest(dictionary, CCNxTlvDictionary_SchemaVersion_V1);
    return dictionary;
}
LONGBOW_TEST_CASE(Global, ccnxWireFormatMessage_PutWireFormatBuffer)
{
    PARCBuffer *buffer = parcBuffer_Allocate(1);
    CCNxTlvDictionary *packet = ccnxTlvDictionary_Create(20, 20);
    ccnxTlvDictionary_SetMessageType_Interest(packet, CCNxTlvDictionary_SchemaVersion_V1);
    bool success = ccnxWireFormatMessage_PutWireFormatBuffer(packet, buffer);

    assertTrue(success, "Failed to put buffer in to dictionary");

    PARCBuffer *test = ccnxWireFormatMessage_GetWireFormatBuffer(packet);
    assertTrue(test == buffer, "Retrieved unexpected buffer: got %p expected %p", (void *) test, (void *) buffer);

    ccnxTlvDictionary_Release(&packet);
    parcBuffer_Release(&buffer);
}