### Question:
Parameters extends Static { public static void copy(final GeneralParameterValue parameters, final Map<? super String, Object> destination) { copy(parameters, destination, null, 0, true); } private  Parameters(); static boolean isValid(final ParameterValue<?> value); static ConformanceResult isValid(final GeneralParameterValue value,
            final GeneralParameterDescriptor descriptor); @Deprecated static ParameterValue<?> getOrCreate(final ParameterDescriptor<?> parameter,
            final ParameterValueGroup group); static List<GeneralParameterValue> search(final GeneralParameterValue parameter,
            final String name, int maxDepth); static void copy(final GeneralParameterValue parameters, final Map<? super String, Object> destination); @Deprecated static boolean ensureSet(final ParameterValueGroup parameters, final String name,
            final double value, final Unit<?> unit, boolean force); static Map<String,Object> toMap(final ParameterValueGroup source); static ParameterValueGroup toParameter(final Map<String, ?> params, final ParameterDescriptorGroup desc); static ParameterValueGroup toParameter(final Map<String, ?> params,
                                                  final ParameterDescriptorGroup desc, final boolean checkMandatory); static GeneralParameterValue getParameterOrGroup(ParameterValueGroup group,String name); @Deprecated
    static final ParameterDescriptorGroup EMPTY_GROUP; }### Answer:
@Test public void testCopyToMap() { final ParameterDescriptorGroup group = create("Group", create("anInteger", 10, 5, 15), create("aRealNumber", 0.25, 0.1, 0.5, null), create("SubGroup", create("anInteger", 2, 1, 4), create("aRealNumber", 1.25, 0.1, 1.4, null)), create("anOtherRealNumber", 0.125, 0.1, 0.4, null)); final ParameterValueGroup values = group.createValue(); final Properties properties = new Properties(); Parameters.copy(values, properties); assertEquals(Integer.valueOf(10), properties.remove("anInteger")); assertEquals(Double .valueOf(0.25), properties.remove("aRealNumber")); assertEquals(Double .valueOf(0.125), properties.remove("anOtherRealNumber")); assertEquals(Integer.valueOf(2), properties.remove("SubGroup:anInteger")); assertEquals(Double .valueOf(1.25), properties.remove("SubGroup:aRealNumber")); assertTrue("Unknown properties remaining.", properties.isEmpty()); }