### Question:
AppPMMLUtils { public static Array toArray(double... values) { List<Double> valueList = new ArrayList<>(values.length); for (double value : values) { valueList.add(value); } String arrayValue = TextUtils.joinPMMLDelimitedNumbers(valueList); return new Array(Array.Type.REAL, arrayValue).setN(valueList.size()); } private  AppPMMLUtils(); static String getExtensionValue(PMML pmml, String name); static List<String> getExtensionContent(PMML pmml, String name); static void addExtension(PMML pmml, String key, Object value); static void addExtensionContent(PMML pmml, String key, Collection<?> content); static Array toArray(double... values); static MiningSchema buildMiningSchema(InputSchema schema); static MiningSchema buildMiningSchema(InputSchema schema, double[] importances); static List<String> getFeatureNames(MiningSchema miningSchema); static Integer findTargetIndex(MiningSchema miningSchema); static DataDictionary buildDataDictionary(
      InputSchema schema,
      CategoricalValueEncodings categoricalValueEncodings); static List<String> getFeatureNames(DataDictionary dictionary); static CategoricalValueEncodings buildCategoricalValueEncodings(
      DataDictionary dictionary); static PMML readPMMLFromUpdateKeyMessage(String key,
                                                  String message,
                                                  Configuration hadoopConf);  }### Answer:
@Test public void testToArrayDouble() { Array a = AppPMMLUtils.toArray(-1.0, 2.01, 3.5); assertEquals(3, a.getN().intValue()); assertEquals(Array.Type.REAL, a.getType()); assertEquals("-1.0 2.01 3.5", a.getValue()); }