### Question:
DisabledServiceSettings implements IServiceSettings, Serializable { @XmlTransient public Map<String, String> getSettings() { return convertJAXBElementListToMap(); } DisabledServiceSettings();  DisabledServiceSettings(Map<String, String> settings); @Override String getComment(); @Override SailfishURI getDictionaryName(); @Override void setDictionaryName(SailfishURI dictionaryName); @Override long getExpectedTimeOfStarting(); @Override long getWaitingTimeBeforeStarting(); @Override boolean isPerformDump(); @Override String getStoredMessageTypes(); @Override boolean isPersistMessages(); @Override boolean isAutoStartable(); @Override boolean isInvertStoredMessageTypes(); @Override long getSendMessageTimeout(); @Override void load(HierarchicalConfiguration config); @XmlTransient Map<String, String> getSettings(); void setSettings(Map<String, String> settings); @XmlAnyElement List<Element> getEntries();  }### Answer:
@Test public void testDisabledToDisabled() throws Exception { ServiceDescription disabledDescription = createDisabledDescription(); Map<String, File> stringFileMap = disabledMarshalManager.exportServices(Arrays.asList(disabledDescription)); Assert.assertEquals(1, stringFileMap.size()); Entry<String, File> next = stringFileMap.entrySet().iterator().next(); File exported = next.getValue(); compareLinesInTwoFiles(disabledExpectedFile, exported); exported.deleteOnExit(); Unmarshaller unmarshaller = disabledMarshalManager.createUnmarshaller(ServiceDescription.class, DisabledServiceSettings.class); disabledDescription = (ServiceDescription)unmarshall(unmarshaller, exported); ServiceDescription unmarshalledDescription = (ServiceDescription)unmarshall(unmarshaller, disabledExpectedFile); compareDescriptionHeads(disabledDescription, unmarshalledDescription); DisabledServiceSettings expectedSettings = (DisabledServiceSettings)disabledDescription.getSettings(); DisabledServiceSettings actualSettings = (DisabledServiceSettings)unmarshalledDescription.getSettings(); Assert.assertEquals(expectedSettings.getSettings(), actualSettings.getSettings()); try (FileInputStream inputStream = new FileInputStream(exported)) { List<ServiceDescription> results = new ArrayList<>(); List<String> errors = new ArrayList<>(); disabledMarshalManager.unmarshalServices(inputStream, false, results, errors); Assert.assertEquals(0, results.size()); Assert.assertEquals(1, errors.size()); String expectedError = "Could not import service. Reason: Cannot find settings class for service URI:" + " test:enabled_service"; Assert.assertEquals(expectedError, errors.get(0)); } }