new SchemaId(METADATA_SCHEMA_CHECKSUM),
CORRECT_METADATA_SCHEMA,
true); // preserve original string
// now create the decoder and attempt to use it to extract and decode the event's metadata
DbusEventAvroDecoder eventDecoder = createDecoder(metadataSchemaSet);
try
{
GenericRecord reuse = null;
GenericRecord decodedMetadata = eventDecoder.getMetadata(event, reuse);
Assert.assertNull(decodedMetadata, "getMetadata() should have returned null;");
}
catch (Exception ex)
{
Assert.fail("getMetadata() should not have thrown exception: " + ex);