@Test
@SuppressWarnings("rawtypes")
public void shouldFailIfNullReturnedFromValueExpression() throws Exception {
this.uiPagedData.setValueExpression("value", mockExpression(null));
this.uiPagedData.encodeEnd(this.context);
PagedDataRows rows = (PagedDataRows) this.requestMap.get("pagedData");
rows.setRowIndex(0);
this.thrown.expect(IllegalStateException.class);
this.thrown.expectMessage("UIPageData value returned null result");
rows.getRowData();
}