@Test
public void canSetAndGetOrientationUsingTheWebDriverAPI() throws MalformedURLException {
driver = new RemoteIOSDriver(getRemoteURL(), IOSCapabilities.iphone("Safari"));
WebDriver d = new Augmenter().augment(driver);
Rotatable rotator = ((Rotatable) d);
rotator.rotate(LANDSCAPE);
Assert.assertEquals(rotator.getOrientation(), LANDSCAPE);
rotator.rotate(PORTRAIT);
Assert.assertEquals(rotator.getOrientation(), PORTRAIT);
}