### Question:
Restriction { @Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final Restriction that = (Restriction) o; return type == that.type && value.equals(that.value); } private  Restriction(Type type, String value); Type getType(); String getValue(); static Restriction identifier(String value); static Restriction title(String value); static Restriction summary(String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { EqualsVerifier.forClass(Restriction.class) .usingGetClass() .withNonnullFields("type", "value") .verify(); }