### Question:
ResourceName implements Distributable { public String get() { return 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 testInitNull() { ResourceName theResourceName = new ResourceName(null); assertNull(theResourceName.get()); }
@Test public void testInitWithName() { ResourceName theResourceName = new ResourceName("test"); assertEquals("test", theResourceName.get()); }