@Test
public void shouldCheckCollectionPropertyWithType() throws Exception {

	assertTrue(PropertyUtil.isCollectionProperty(DummyClass.class.getField("stringList").getGenericType(), false));
	assertTrue(PropertyUtil.isCollectionProperty(DummyClass.class.getField("objectList").getGenericType(), false));
	assertTrue(PropertyUtil.isCollectionProperty(new HashSet<String>().getClass(), false));
	assertTrue(PropertyUtil.isCollectionProperty(new HashSet<DummyClass>().getClass(), false));
	assertFalse(PropertyUtil.isCollectionProperty(DummyClass.class.getField("boxed").getGenericType(), false));
	assertFalse(PropertyUtil.isCollectionProperty(String.class, false));
	assertFalse(PropertyUtil.isCollectionProperty(HashMap.class, false));
	assertFalse(PropertyUtil.isCollectionProperty(DummyClass.class.getField("genericObjectArray").getGenericType(), false));
}