String pageName = "name";
String layoutName = "layout";
expect(pageService.updatePage(PAGE_ID, pageName, layoutName)).andReturn(page);
replay(pageService);
RpcResult result = pageApi.updatePageProperties(PAGE_ID, pageName, layoutName);
verify(pageService);
assertThat(result, is(notNullValue()));
assertThat((Page)result.getResult(), is (page));
assertThat(result.isError(), is(false));
assertThat(result.getErrorCode(), is (RpcResult.ErrorCode.NO_ERROR));
assertThat(result.getErrorMessage(), is(nullValue()));
}