XmiSerializationSharedData sharedData2 = new XmiSerializationSharedData();
this.deserialize(xml, cas2, sharedData2, true, -1);
CasComparer.assertEquals(cas1, cas2);
//create Marker, add/modify fs and serialize in delta xmi format.
Marker marker = cas2.createMarker();
boolean caughtMutlipleMarker = false;
try {
Marker marker2 = cas2.createMarker();
} catch (UIMARuntimeException e) {
caughtMutlipleMarker = true;
System.out.format("Should catch MultipleCreateMarker message: %s%n", e.getMessage());
}
assertTrue(caughtMutlipleMarker);