### Question:
Elevator implements DoorsListener { public void pushButton(int floorNumber){ this.requestedFloor = floorNumber; if(floorNumber != currentFloor()) doorsDriver.closeDoors(this); } Elevator(DoorsDriver doorsDriver);  Elevator(int startingFloor, DoorsDriver doorsDriver); int currentFloor(); void pushButton(int floorNumber); Status status(); @Override void doorsClosed();  }### Answer:
@Test public void shouldCloseDoorsAfterPushingAnyButton() throws Exception { elevator.pushButton(3); assertThat(doorsDriver.doorClosingHasBeenRequested()).isTrue(); }
@Test public void shouldNotCloseDoorsAfterPushingButtonWithCurrentFloor() throws Exception { elevator.pushButton(0); assertThat(doorsDriver.doorClosingHasBeenRequested()).isFalse(); }