DecoratedTouchScreen extends DecoratedChild<TouchScreen,DecoratedWebDriver> implements TouchScreen { @Override public void longPress(Coordinates coordinates) { getOriginal().longPress(coordinates); } DecoratedTouchScreen(final TouchScreen touchScreen, final DecoratedWebDriver driverWrapper); @Override void singleTap(Coordinates coordinates); @Override void down(int x, int y); @Override void up(int x, int y); @Override void move(int x, int y); @Override void scroll(Coordinates coordinates, int x, int y); @Override void doubleTap(Coordinates coordinates); @Override void longPress(Coordinates coordinates); @Override void scroll(int x, int y); @Override void flick(int xSpeed, int ySpeed); @Override void flick(Coordinates coordinates, int x, int y, int speed);  }
@Test void testLongPress() { final Coordinates coords = mock(Coordinates.class); verifyFunction($ -> $.longPress(coords)); }