### Question:
GetParameterValuesCommand extends AbstractCommand { public void setParameters(List<String> parameters) { this.parameters = parameters; } GetParameterValuesCommand(); List<String> getParameters(); void setParameters(List<String> parameters); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testSer() { GetParameterValuesCommand constructed = new GetParameterValuesCommand(); List<String> params = new ArrayList<String>(); params.add("ms2.temperature"); params.add("ms2.humidity"); params.add("ms2.luminosity"); constructed.setParameters(params); String json = ser.toJson(constructed); GetParameterValuesCommand deserialized = ser.fromJson(json, GetParameterValuesCommand.class); assertEquals(constructed, deserialized); assertTrue(json.replaceAll("\\s", "").startsWith("{\"command\":")); }