### Question:
CloverJpsGlobalConfigurationSerializer extends JpsGlobalExtensionSerializer { @Override public void loadExtension(@NotNull JpsGlobal jpsGlobal, @NotNull Element componentTag) { final String licenseText = JDOMExternalizerUtil.readField(componentTag, "licenseText", ""); final long installDate = Long.valueOf(JDOMExternalizerUtil.readField(componentTag, "installDate", "-1")); CloverGlobalConfig data = new CloverGlobalConfig(licenseText, installDate); JpsSimpleElement<CloverGlobalConfig> wrappedData = JpsElementFactory.getInstance().createSimpleElement(data); jpsGlobal.getContainer().setChild(CloverGlobalSettingsRole.INSTANCE, wrappedData); } CloverJpsGlobalConfigurationSerializer(); @Override void loadExtension(@NotNull JpsGlobal jpsGlobal, @NotNull Element componentTag); @Override void saveExtension(@NotNull JpsGlobal jpsGlobal, @NotNull Element componentTag);  }### Answer:
@Test public void testLoadExtension() { final CloverJpsGlobalConfigurationSerializer serializer = new CloverJpsGlobalConfigurationSerializer(); final JpsModel jpsModel = new JpsModelImpl(null); serializer.loadExtension(jpsModel.getGlobal(), createSampleData()); final JpsElement jpsElement = jpsModel.getGlobal().getContainer().getChild(CloverJpsGlobalConfigurationSerializer.CloverGlobalSettingsRole.INSTANCE); assertNotNull(jpsElement); assertTrue(jpsElement instanceof JpsSimpleElement); final CloverGlobalConfig data = ((JpsSimpleElement<CloverGlobalConfig>)jpsElement).getData(); assertNotNull(data); assertEquals("abc", data.getLicenseText()); assertEquals(1366375690090L, data.getInstallDate()); }