DittoAcknowledgementLabel implements AcknowledgementLabel { @Override public String toString() { return delegate.toString(); } private  DittoAcknowledgementLabel(final CharSequence labelValue); static AcknowledgementLabel[] values(); static boolean contains(@Nullable final AcknowledgementLabel acknowledgementLabel); @SuppressWarnings("squid:S2097") @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override int length(); @Override char charAt(final int index); @Override CharSequence subSequence(final int start, final int end); @Override String toString(); static final DittoAcknowledgementLabel TWIN_PERSISTED; static final DittoAcknowledgementLabel LIVE_RESPONSE; }
@Test public void testHashCodeAndEquals() { EqualsVerifier.forClass(DittoAcknowledgementLabel.class) .usingGetClass() .verify(); final DittoAcknowledgementLabel underTest = DittoAcknowledgementLabel.TWIN_PERSISTED; final AcknowledgementLabel other = AcknowledgementLabel.of(underTest.toString()); assertThat((CharSequence) other).isEqualTo(underTest); }