assertEquals("testValue2", saveRestoreState(adaptor2).invoke(facesContext, null));
}
public void testSerializeDeserialize() throws Exception {
MethodBindingMethodExpressionAdapter adaptor1 = new MethodBindingMethodExpressionAdapter(
new TestMethodExpression("testValue1"));
assertEquals("testValue1", serializeDeserialize(adaptor1).invoke(facesContext, null));
MethodBindingMethodExpressionAdapter adaptor2 = new MethodBindingMethodExpressionAdapter(
new StateHolderTestMethodExpression("testValue2"));
assertEquals("testValue2", serializeDeserialize(adaptor2).invoke(facesContext, null));
}