void (String type, String fqName, String expectedFQName) { final Element entryPoints = setUpEntryPoint(type, fqName); final HashMap<String, SmartRefElementPointer> persistentEntryPoints = new HashMap<>(); EntryPointsManagerBase.convert(entryPoints, persistentEntryPoints); final Element testElement = new Element("comp"); EntryPointsManagerBase.writeExternal(testElement, persistentEntryPoints, new JDOMExternalizableStringList()); final Element expectedEntryPoints = setUpEntryPoint(type, expectedFQName); expectedEntryPoints.setAttribute("version", "2.0"); final Element expected = new Element("comp"); expected.addContent(expectedEntryPoints); assertTrue(JDOMUtil.areElementsEqual(testElement, expected)); }