PersistableDevice implements ReservationHandler, DawgDevice { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } PersistableDevice();  PersistableDevice(DawgDevice device);  PersistableDevice(Map<String, Object> data); @Override Long getExpiration(); @Override void setExpiration(Long expiration); String[] getKeys(); void setKeys(String[] keys); String getId(); void setId(String id); Map<String, Object> getData(); void setData(Map<String,Object> data); @Override int hashCode(); @Override boolean equals(Object obj); @Override String reserve(String token); @Override boolean isReserved(); @Override String unreserve(); @Override String getReserver(); static final String RESERVER; static final String EXPIRATION_KEY; }
@Test public void testHashCode() { PersistableDevice device = new PersistableDevice(); Assert.assertNotNull(device.hashCode()); }