### Question:
TextExpression implements Distributable { public static TextExpression deserialize(Map<String,Object> aSerializedData) { String theExpression = (String) aSerializedData.get("expression"); return new TextExpression(theExpression); } TextExpression(String aExpression); String get(); @Override boolean equals(Object o); @Override int hashCode(); @Override Map<String, Object> serialize(); static TextExpression deserialize(Map<String,Object> aSerializedData); final String expression; }### Answer:
@Test public void testDeserialize() throws Exception { Map<String, Object> theData = new HashMap<>(); theData.put("expression", "test"); TextExpression theExpression = TextExpression.deserialize(theData); assertEquals("test", theExpression.get()); }