Call { @Override public int hashCode() { return commandName.hashCode(); } Call(final String commandName, final Completer... completers); static Call call(final String commandName, final Completer... completers); String commandName(); Completer[] completers(); @Override boolean equals(final Object o); @Override int hashCode();  }
@Test public void testHashCode() throws Exception { final Call call = call("cmd"); assertTrue(call.equals(call("cmd"))); assertTrue(call.hashCode() == call("cmd").hashCode()); }