DefaultAnimatableElevation extends AnimatableBase implements AnimatableElevation { @Override public void addElevationModel(ElevationModelIdentifier modelIdentifier) { if (modelIdentifier == null || hasElevationModel(modelIdentifier)) { return; } ElevationModel loadedModel = AnimationElevationLoader.loadElevationModel(modelIdentifier); if (loadedModel == null) { return; } containerModel.addElevationModel(loadedModel); elevationModelIdentification.put(modelIdentifier, loadedModel); fireAddEvent(loadedModel); } @SuppressWarnings("unused") private  DefaultAnimatableElevation();  DefaultAnimatableElevation(Animation animation);  DefaultAnimatableElevation(String name, Animation animation);  DefaultAnimatableElevation(Animation animation, List<ElevationModel> elevationModels,
			List<ElevationExaggeration> exaggerators); @Override Collection<Parameter> getParameters(); @Override VerticalExaggerationElevationModel getRootElevationModel(); @Override List<ElevationModelIdentifier> getElevationModelIdentifiers(); @Override boolean hasElevationModel(ElevationModelIdentifier modelIdentifier); @Override void addElevationModel(ElevationModelIdentifier modelIdentifier); @Override void removeElevationModel(ElevationModelIdentifier modelIdentifier); @Override void addElevationExaggerator(ElevationExaggeration exaggerator); @Override void removeElevationExaggerator(ElevationExaggeration exaggerator);  }
@Test public void testToXml() throws Exception { addElevationModel("test1", "file: addExaggerator(1.0, 0.0); addExaggerator(2.0, 100.0); addExaggerator(3.0, 200.0); addKeyFrame(0, 1.2, getParameter(0)); addKeyFrame(10, 2.5, getParameter(0)); addKeyFrame(20, 3.5, getParameter(2)); Document xmlDocument = writeClassToBeTestedToXml(); ByteArrayOutputStream resultStream = writeDocumentToStream(xmlDocument); String result = normalise(new String(resultStream.toByteArray())); String expected = normalise(TestUtils.readStreamToString(getClass().getResourceAsStream("animatableElevationXmlSnippet.xml"))); assertEquals(expected, result); }