@Test
public void testRealizeCollectionWithNullElement() {

    LinkedList<String> listStr = new LinkedList<>();
    listStr.add("arrayValue");
    listStr.add(null);
    HashSet<String> setStr = new HashSet<>();
    setStr.add("setValue");
    setStr.add(null);
    Object listResult = PojoUtils.realize(listStr, LinkedList.class);
    assertEquals(LinkedList.class, listResult.getClass());
    assertEquals(listResult, listStr);
    Object setResult = PojoUtils.realize(setStr, HashSet.class);
    assertEquals(HashSet.class, setResult.getClass());
    assertEquals(setResult, setStr);
}