ValueMap vm = new ValueMapDecorator(map);
Resource res = mock(Resource.class);
when(res.adaptTo(ValueMap.class)).thenReturn(vm);
ListModel model = factory.getAdapter(res, ListModel.class);
assertNotNull(model);
assertEquals(4, model.getIntList().size());
assertEquals(new Integer(2), model.getIntList().get(1));
assertEquals(2, model.getStringList().size());
assertEquals("hello", model.getStringList().get(0));
}