SpanId { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SpanId)) { return false; } SpanId that = (SpanId)obj; return spanId == that.spanId; } SpanId(long spanId); static SpanId invalid(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); boolean isValid(); long getSpanId(); String getApiString();  }
@Test public void testEquals() { assertThat(first).isEqualTo(first); assertThat(first).isNotEqualTo(second); }