### Question:
Speed implements Reflectable, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("speed", Long.toString(speed)); return theResult; } Speed(long aSpeed); Long get(); @ReflectiveMethod Speed incrementBy(int aAmount); @ReflectiveMethod Speed resetToZero(); @Override SpeedClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Speed deserialize(Map<String, Object> aSerializedData); final long speed; }### Answer:
@Test public void testSerialize() throws Exception { Speed theSpeed = new Speed(28); Map<String, Object> theData = theSpeed.serialize(); assertEquals(1, theData.size()); assertEquals("28", theData.get("speed")); }