### Question:
Angle implements Reflectable, Distributable { public static Angle deserialize(Map<String, Object> aSerializedData) { int theAngleInDegrees = Integer.parseInt((String) aSerializedData.get("angleindegrees")); return new Angle(theAngleInDegrees); } Angle(int aAngleInDegrees); Integer get(); @ReflectiveMethod Angle add(int aDiff); @ReflectiveMethod Angle invert(); @ReflectiveMethod Angle snapTo(int aStep); @ReflectiveMethod Angle resetToZero(); float toRadians(); @Override boolean equals(Object o); @Override int hashCode(); @Override AngleClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Angle deserialize(Map<String, Object> aSerializedData); static Angle fromRadians(float aAngleInRadians); final int angleInDegrees; static final Angle ZERO; }### Answer:
@Test public void testDeserialize() throws Exception { Map<String, Object> theData = new HashMap<>(); theData.put("angleindegrees","10"); Angle theAngle = Angle.deserialize(theData); assertEquals(10, theAngle.get().intValue()); }