ActionsGenerator { public Mouse mouse() { return new Mouse(); } ActionsGenerator(String mouseObject, String keyboardObject, String actionObject); Keyboard keyboard(); Mouse mouse(); Actions builder();  }
@Test public void generateCodeForMouseClick() throws Exception { assertThat(this.action.mouse().click("10, 100"), is(equalTo("mouse.click(10, 100)"))); }
@Test public void generateCodeForMouseContextClick() throws Exception { assertThat(this.action.mouse().contextClick("10, 100"), is(equalTo("mouse.contextClick(10, 100)"))); }
@Test public void generateCodeForMouseDoubleClick() throws Exception { assertThat(this.action.mouse().doubleClick("10, 100"), is(equalTo("mouse.doubleClick(10, 100)"))); }
@Test public void generateCodeForMouseDown() throws Exception { assertThat(this.action.mouse().mouseDown("10, 100"), is(equalTo("mouse.mouseDown(10, 100)"))); }
@Test public void generateCodeForMouseUp() throws Exception { assertThat(this.action.mouse().mouseUp("10, 100"), is(equalTo("mouse.mouseUp(10, 100)"))); }
@Test public void generateCodeForMouseMouse() throws Exception { assertThat(this.action.mouse().mouseMove("10, 100"), is(equalTo("mouse.mouseMove(10, 100)"))); }
@Test public void generateCodeForMouseMovePlusExtraCoordinates() throws Exception { assertThat(this.action.mouse().mouseMove("10, 100", 50, 25), is(equalTo("mouse.mouseMove(10, 100, 50, 25)"))); }