### Question:
SetParameterValuesCommand extends AbstractCommand { public void setValues(Map<String, Object> values) { this.values = values; } SetParameterValuesCommand(); Map<String, Object> getValues(); void setValues(Map<String, Object> values); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testSer() { SetParameterValuesCommand constructed = new SetParameterValuesCommand(); Map<String,Object> values = new HashMap<String,Object>(); values.put("ms2.lightsensorenabled", true); values.put("ms2.temperaturescale", "celcius"); constructed.setValues(values); String json = ser.toJson(constructed); SetParameterValuesCommand deserialized = ser.fromJson(json, SetParameterValuesCommand.class); assertEquals(constructed, deserialized); assertTrue(json.replaceAll("\\s", "").startsWith("{\"command\":")); }