@Test
public void consolidateObjectsToXMLWellTest() throws ValveException {

    // build well list
    ArrayList<AbstractWitsmlObject> witsmlObjects = new ArrayList<>();
    ObjWell well = new ObjWell();
    well.setName("well-1");
    well.setUid("well-1");
    witsmlObjects.add(well);
    String clientVersion = "1.3.1.1";
    String objectType = "well";
    String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><wells version=\"1.3.1.1\" xmlns=\"http://www.witsml.org/schemas/131\"><well uid=\"well-1\"><name>well-1</name></well></wells>";
    String actual = DotTranslator.consolidateObjectsToXML(witsmlObjects, clientVersion, objectType);
    assertEquals(expected, actual);
    witsmlObjects = new ArrayList<>();
    com.hashmapinc.tempus.WitsmlObjects.v1411.ObjWell well1411 = new com.hashmapinc.tempus.WitsmlObjects.v1411.ObjWell();
    well1411.setName("well-1");
    well1411.setUid("well-1");
    witsmlObjects.add(well1411);
    clientVersion = "1.4.1.1";
    objectType = "well";
    expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><wells version=\"1.4.1.1\" xmlns=\"http://www.witsml.org/schemas/1series\" xmlns:ns2=\"http://www.energistics.org/schemas/abstract\"><well uid=\"well-1\"><name>well-1</name></well></wells>";
    actual = DotTranslator.consolidateObjectsToXML(witsmlObjects, clientVersion, objectType);
    assertEquals(expected, actual);
}