DataStorageMetadataDictionary { public void renameClass(String previousDataClassNameFullQualified, String newNameFullQualified) { for (DataStorageMetadata dataStorageMetadata : this.dataList) { dataStorageMetadata.renameClass(previousDataClassNameFullQualified,newNameFullQualified); } if (previousDataClassNameFullQualified.equals(rootClass)){ rootClass=newNameFullQualified; } } @JsonCreator  DataStorageMetadataDictionary(@JsonProperty("dataList") List<DataStorageMetadata> dataList, @JsonProperty("rootClass")String rootClass); DataStorageMetadata getDataStorageMetadata(String dataClassNameFullQualified); boolean containsClass(String dataClassNameFullQualified); boolean containsAttribute(String dataClassNameFullQualified, String previousAttributeName); boolean isSingleton(String fullQualifiedName); void renameAttribute(String dataClassNameFullQualified, String previousAttributeName, String newAttributeName); void renameClass(String previousDataClassNameFullQualified, String newNameFullQualified); boolean isRemovedAttribute(String dataClass, String previousAttributeName); boolean isRetypedAttribute(String dataClass, String previousAttributeName); void markRemovedAttributes(); void markRetypedAttributes(); @JsonIgnore DataStorageMetadata getRootDataStorageMetadata(); void markRemovedClasses();  }
@Test public void test_rename_root(){ DataStorageMetadataDictionary dictionary = createDataStorageMetadataDictionaryFromRoot(); dictionary.renameClass(ExampleDataA.class.getName(),"a.b.C"); Assertions.assertEquals("a.b.C",dictionary.rootClass); }