@Test
public void testConvertWrapperListToPrimitiveArray() {

    List<Integer> integerList = new ArrayList<>();
    integerList.add(1);
    Object reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(integerList, new int[]{}.getClass());
    assertTrue(reuslt.getClass().isArray());
    assertTrue(reuslt.getClass().getComponentType().isPrimitive());
    List<Long> longList = new ArrayList<>();
    longList.add(1l);
    reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(longList, new long[]{}.getClass());
    assertTrue(reuslt.getClass().isArray());
    assertTrue(reuslt.getClass().getComponentType().isPrimitive());
    List<Character> characterList = new ArrayList<>();
    characterList.add('a');
    reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(characterList, new char[]{}.getClass());
    assertTrue(reuslt.getClass().isArray());
    assertTrue(reuslt.getClass().getComponentType().isPrimitive());
    List<Boolean> booleanList = new ArrayList<>();
    booleanList.add(true);
    reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(booleanList, new boolean[]{}.getClass());
    assertTrue(reuslt.getClass().isArray());
    assertTrue(reuslt.getClass().getComponentType().isPrimitive());
    List<Float> floatList = new ArrayList<>();
    floatList.add(1.0f);
    reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(floatList, new float[]{}.getClass());
    assertTrue(reuslt.getClass().isArray());
    assertTrue(reuslt.getClass().getComponentType().isPrimitive());
    List<Double> doubleList = new ArrayList<>();
    doubleList.add(1.0d);
    reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(doubleList, new double[]{}.getClass());
    assertTrue(reuslt.getClass().isArray());
    assertTrue(reuslt.getClass().getComponentType().isPrimitive());
}