@Test
public void testNullList() {
NamesArray namesArray = new NamesArray();
String[] arr = new String[] {null, "two"};
namesArray.setNames(arr);
NamesList namesSet = mapper.map(namesArray, NamesList.class, "null-list");
Assert.assertArrayEquals(arr, namesSet.getNames().toArray());
}