@Test
public void testMapResourceToField() {

	String[] resultArray = new String[] { "asd", "qwe" };
	Mockito.when(valueMap.get(propertyName)).thenReturn(resultArray);
	Object result = processor.mapResourceToField(resource, valueMap, null, propertyName);
	Assert.assertTrue(result instanceof Collection);
	Collection<?> coll = (Collection<?>) result;
	Assert.assertEquals(2, coll.size());
	Iterator<?> iterator = coll.iterator();
	Assert.assertEquals("asd", iterator.next());
	Assert.assertEquals("qwe", iterator.next());
}