verifyShortArrayConversion(mapper, data, long[].class);
}
public void testIntArrayToX() throws Exception
{
final XmlMapper mapper = new XmlMapper();
int[] data = ints();
verifyIntArrayConversion(mapper, data, byte[].class);
verifyIntArrayConversion(mapper, data, short[].class);
verifyIntArrayConversion(mapper, data, long[].class);
List<Number> expNums = _numberList(data, data.length);
// Alas, due to type erasure, need to use TypeRef, not just class
List<Integer> actNums = mapper.convertValue(data, new TypeReference<List<Integer>>() {});
assertEquals(expNums, actNums);
}