@Test
	@Order(2)
	void testCommentsGetMigratedAfterRemapping() {
		ClassPathNode preMappingPath = workspace.findJvmClass(classToDecompile.getName());
		assertNotNull(preMappingPath);

		// Generate some mappings for the documented class (applied in the first test)
		String mappedClassName = "Foo";
		IntermediateMappings mappings = new IntermediateMappings();
		mappings.addClass(classToDecompile.getName(), mappedClassName);
		mappings.addField(classToDecompile.getName(), "I", "CONST_INT", "BAR");
		mappings.addMethod(classToDecompile.getName(), "()V", "methodWithLocalVariables", "fizz");

		// Apply the mappings
		MappingResults results = mappingApplierService.inCurrentWorkspace().applyToPrimaryResource(mappings);
		ClassPathNode postMappingPath = results.getPostMappingPath(classToDecompile.getName());
		assertNotNull(postMappingPath, "Post-mapping path does not exist in mapping results");
		results.apply();

		// Validate the old mappings are migrated.
		WorkspaceComments workspaceComments = commentManager.getOrCreateWorkspaceComments(workspace);
		assertNull(workspaceComments.getClassComments(preMappingPath), "Old comment container still exists");
		ClassComments newClassComments = workspaceComments.getClassComments(postMappingPath);
		assertNotNull(newClassComments, "New comment container does not exist");
		assertNotNull(newClassComments.getClassComment(), "Missing class comment");
		assertNotNull(newClassComments.getFieldComment("BAR", "I"), "Missing field comment");
		assertNotNull(newClassComments.getMethodComment("fizz", "()V"), "Missing method comment");
	}
Field comment
This is a constant value.
recaf-core/src/test/java/software/coley/recaf/services/comment/CommentManagerTest.java