How to change orientation of mobile device in between the test execution in java?

How can I adjust the orientation of a mobile device while running a Java test?

Hi Aaron,

User need Appium driver to rotate the orientaion:

driver.rotate(ScreenOrientation.LANDSCAPE); //or PORTRAIT