DecoratedAlert extends DecoratedChild<Alert,DecoratedWebDriver> implements Alert { @Override public void accept() { getOriginal().accept(); } DecoratedAlert(final Alert alert, final DecoratedWebDriver driverWrapper); @Override void accept(); @Override void dismiss(); @Override String getText(); @Override void sendKeys(String text);  }
@Test void testAccept() { verifyFunction(Alert::accept); }