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