@Test public void testHasCustomString() throws Exception { HandlerId id = resourceHandlerId(); assertThat(id.toString(),not(equalTo(HandlerId.class.getName()+"@"+System.identityHashCode(id)))); }
@Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("className", this.className). add("systemHashCode", this.systemHashCode). add("container", this.container). toString(); }
HandlerId { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("className", this.className). add("systemHashCode", this.systemHashCode). add("container", this.container). toString(); } }
HandlerId { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("className", this.className). add("systemHashCode", this.systemHashCode). add("container", this.container). toString(); } private  HandlerId(String className, int systemHashCode, boolean container); }
HandlerId { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("className", this.className). add("systemHashCode", this.systemHashCode). add("container", this.container). toString(); } private  HandlerId(String className, int systemHashCode, boolean container); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
HandlerId { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("className", this.className). add("systemHashCode", this.systemHashCode). add("container", this.container). toString(); } private  HandlerId(String className, int systemHashCode, boolean container); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }