ActionsGenerator { public Keyboard keyboard() { return new Keyboard(); } ActionsGenerator(String mouseObject, String keyboardObject, String actionObject); Keyboard keyboard(); Mouse mouse(); Actions builder();  }
@Test public void generateCodeForKeyboardPressKeys() throws Exception { assertThat(this.action.keyboard().pressKey(Keys.ADD), is(equalTo("keyboard.pressKey(Keys.ADD)"))); }
@Test public void generateCodeForKeyboardReleaseKeys() throws Exception { assertThat(this.action.keyboard().releaseKey(Keys.ADD), is(equalTo("keyboard.releaseKey(Keys.ADD)"))); }
@Test public void generateCodeForKeyboardSendKeys() throws Exception { assertThat(this.action.keyboard().sendKeys("foobar"), is(equalTo("keyboard.sendKeys(\"foobar\")"))); }