to.setSetToArray(set);
AnotherTestObject ato2 = new AnotherTestObject();
ato2.setDay("day");
to.addAnotherTestObject(ato2);
GetWeatherByZipCodeResponseDocument responseDoc = mapper.map(to, GetWeatherByZipCodeResponseDocument.class);
WeatherData[] weatherDataArray = responseDoc.getGetWeatherByZipCodeResponse().getWeatherDataArray();
WeatherData[] weatherData2Array = responseDoc.getGetWeatherByZipCodeResponse().getWeatherData2Array();
assertEquals(ato.getDay(), weatherDataArray[0].getDay());
assertEquals(ato2.getDay(), weatherData2Array[0].getDay());
// now take the xmlbeans array and map the other direction
TestObject toResult = mapper.map(responseDoc, TestObject.class);