action.setId("54321");
action.setBrowserId(12345);
mockRunner = new MockBrowserTestRunner() {
public BrowserResult findResultWithId(String id, int browserId) throws InvalidBrowserIdException {
super.findResultWithId(id, browserId);
throw new InvalidBrowserIdException(browserId);
}
};
action.setBrowserTestRunner(mockRunner);
assertEquals(ResultDisplayerAction.ERROR, action.execute());
assertEquals("54321", this.mockRunner.idPassed);