CustomizationIdentifier implements Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CustomizationIdentifier that = (CustomizationIdentifier) o; return value.equals(that.value); } CustomizationIdentifier(String customizationIdentifier); static CustomizationIdentifier valueOf(String s); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void equalsTest() { final String s = "urn:www.cenbii.eu:transaction:biicoretrdm057:ver1.0" + ":#urn:www.peppol.eu:bis:peppol1a:ver1.0"; CustomizationIdentifier c1 = CustomizationIdentifier.valueOf(s); CustomizationIdentifier c2 = CustomizationIdentifier.valueOf(s); assertEquals(c1, c2); }