// Serialize a key created from a derived key
final String key2source = "test2.properties";
final ResourceKey key2 = manager.deriveKey(key1, key2source);
assertNotNull(key2);
final String serKey2 = resourceLoader.serialize(null, key2);
assertNotNull("The returned key should not be null", serKey2); //$NON-NLS-1$
assertTrue("Serialized verison does not start with the correct header", serKey2.startsWith(STRING_SERIALIZATION_PREFIX));
assertTrue("Serialized version does not contain the correct schema information", serKey2.startsWith(DESERIALIZE_PREFIX));
assertTrue("Serialized version should contain the identifier intact", serKey2.endsWith(";res://org/pentaho/reporting/libraries/resourceloader/test2.properties"));