new ScopedName(USER, "up1"), "uv1",
new ScopedName(USER, "up2"), "uv2"));
MetadataMutation create = new MetadataMutation.Create(entity, metadata, Collections.emptyMap());
change = mds.apply(create);
Assert.assertEquals(new MetadataChange(entity, previousMetadata, metadata), change);
ImmutableMap.of(new ScopedName(SYSTEM, "sp1"), "nsv1",
new ScopedName(SYSTEM, "nsp0"), "sv0"));
MetadataMutation recreate = new MetadataMutation.Create(entity, recreatedMetadata, ImmutableMap.of(
new ScopedNameOfKind(MetadataKind.TAG, SYSTEM, "st1"), MetadataDirective.KEEP,
new ScopedNameOfKind(MetadataKind.TAG, SYSTEM, "st2"), MetadataDirective.PRESERVE,
new ScopedName(SYSTEM, "nsp2"), "sv2",
new ScopedName(USER, "up3"), "uv3"));
recreate = new MetadataMutation.Create(entity, recreatedMetadata, ImmutableMap.of(
new ScopedNameOfKind(MetadataKind.TAG, SYSTEM, "st1"), MetadataDirective.KEEP,
new ScopedNameOfKind(MetadataKind.TAG, SYSTEM, "st2"), MetadataDirective.PRESERVE,