Unit Test cases covering the MetadataRepository implementation.