### Question:
AlternativeScheme implements Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AlternativeScheme that = (AlternativeScheme) o; return Objects.equals(name, that.name) && Objects.equals(instruction, that.instruction); } AlternativeScheme();  AlternativeScheme(String name, String instruction); String getName(); void setName(String name); String getInstruction(); void setInstruction(String instruction); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void testEquals() { AlternativeScheme scheme1 = new AlternativeScheme("Paymit", "PM,12341234,1241234"); AlternativeScheme scheme2 = new AlternativeScheme("Paymit", "PM,12341234,1241234"); assertEquals(scheme1, scheme2); assertEquals(scheme1, scheme2); scheme2.setName("TWINT"); assertNotEquals(scheme1, scheme2); }