    @Test
    public void convertToArray() {

        String[] normalFieldNames = new String[] { "id", "name" };
        TypeInformation[] normalTypes = new TypeInformation[] {Types.INT(), Types.STRING()};
        RowTypeInfo rowTypeInfo = new RowTypeInfo(normalTypes, normalFieldNames);
        TypeInformation normalAtomicType = Types.OBJECT_ARRAY(Types.STRING());
        TypeInformation normalCompositeType = Types.OBJECT_ARRAY(rowTypeInfo);

        String atomicStrWithBlank = " ARRAY< STRING\n > ";
        String compositeTypeStrWithBlank = " ARRAY<  ROW< id  INT, name  STRING >  > ";

        TypeInformation atomicArrayTypeWithBlank = DataTypeUtils.convertToArray(atomicStrWithBlank);
        TypeInformation compositeTypeArrayTypeWithBlank = DataTypeUtils.convertToArray(compositeTypeStrWithBlank);

        Assert.assertTrue(normalAtomicType.equals(atomicArrayTypeWithBlank));
        Assert.assertTrue(normalCompositeType.equals(compositeTypeArrayTypeWithBlank));


        String atomicStr = "ARRAY<STRING>";
        String compositeTypeStr = "ARRAY<ROW<id INT, name STRING>>";

        TypeInformation atomicArrayType = DataTypeUtils.convertToArray(atomicStr);
        TypeInformation compositeTypeArrayType = DataTypeUtils.convertToArray(compositeTypeStr);

        Assert.assertTrue(normalAtomicType.equals(atomicArrayType));
        Assert.assertTrue(normalCompositeType.equals(compositeTypeArrayType));
    }