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