### Question:
ResourceName implements Distributable { @Override public int hashCode() { return name != null ? name.hashCode() : 0; } 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 testHashCode() throws Exception { assertEquals(0, new ResourceName(null).hashCode()); assertEquals("test".hashCode(), new ResourceName("test").hashCode()); }