import com.gwtplatform.dispatch.shared.ActionException;
public class ActionTestBase {
protected void testAction(Dispatch dispatch) throws ActionException, ServiceException {
TestAction action = new TestAction(TestActionHandler.MESSAGE);
TestResult result = dispatch.execute(action);
Assert.assertTrue("Invalid action result! Processing error occured", result.getResult());
}