// flip orientation
{
UiContext context = new UiContext();
ToolItem deviceToolItem = context.getToolItem("Flip orientation");
// PORTRAIT -> LANDSCAPE
context.click(deviceToolItem);
assertEquals(new Rectangle(25, 25, 320, 240), panelFigure.getBounds());
// LANDSCAPE -> PORTRAIT
context.click(deviceToolItem);
assertEquals(new Rectangle(25, 25, 240, 320), panelFigure.getBounds());
}