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