### Question:
AlternativeScheme implements Serializable { @Override public String toString() { return "AlternativeScheme{" + "name='" + name + '\'' + ", instruction='" + 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 toStringTest() { AlternativeScheme scheme = new AlternativeScheme("Paymit", "PM,12341234,1241234"); String text = scheme.toString(); assertEquals("AlternativeScheme{name='Paymit', instruction='PM,12341234,1241234'}", text); }