### Question:
AddTransplantRequestAction extends ClientAction { @Override protected void execute() { super.execute(); client.addTransplantRequest(request); manager.applyChangesTo(client); } AddTransplantRequestAction(Client client, TransplantRequest request, ClientManager manager); @Override String getExecuteText(); @Override String getUnexecuteText();  }### Answer:
@Test public void checkRequestWasAddedTest() { TransplantRequest request = new TransplantRequest(testClient, Organ.HEART); Action action = new AddTransplantRequestAction(testClient, request, manager); invoker.execute(action); assertTrue(testClient.getTransplantRequests().contains(request)); }
@Test public void checkRequestWasAddedThenUndoneTest() { TransplantRequest request = new TransplantRequest(testClient, Organ.HEART); Action action = new AddTransplantRequestAction(testClient, request, manager); invoker.execute(action); assertTrue(testClient.getTransplantRequests().contains(request)); invoker.undo(); assertFalse(testClient.getTransplantRequests().contains(request)); }