IterationTableStateBean bean;
@AfterPhase(Phase.INVOKE_APPLICATION)
public void verify_table_state_updated() throws JSONException {
ExtendedDataTableState beanState = new ExtendedDataTableState(bean.getWidthState());
Assert.assertEquals("Backing bean table state should be updated", "270px", beanState.toJSON().getJSONObject("columnsWidthState").getString("column1"));
FacesContext facesContext = FacesContext.getCurrentInstance();
AbstractExtendedDataTable edtComponent = (AbstractExtendedDataTable) facesContext.getViewRoot().findComponent("myForm").findComponent("edt");
ExtendedDataTableState tableState = new ExtendedDataTableState(edtComponent);
Assert.assertEquals("EDT tableState should be updated", "270px", tableState.toJSON().getJSONObject("columnsWidthState").getString("column1"));