### Question:
ConfigureForDosVisitor implements AllModemVisitor { @Override public void visit(Hayes hayes) { LOGGER.info(hayes + " used with Dos configurator."); }  @Override void visit(Hayes hayes); @Override void visit(Zoom zoom);  }### Answer:
@Test public void testVisitForZoom() { var conDos = new ConfigureForDosVisitor(); var zoom = new Zoom(); conDos.visit(zoom); assertThat(logger.getLoggingEvents()) .extracting("level", "message") .contains(tuple(INFO, zoom + " used with Dos configurator.")); }
@Test public void testVisitForHayes() { var conDos = new ConfigureForDosVisitor(); var hayes = new Hayes(); conDos.visit(hayes); assertThat(logger.getLoggingEvents()) .extracting("level", "message") .contains(tuple(INFO, hayes + " used with Dos configurator.")); }