assertEquals("testValue2", saveRestoreState(adaptor2).getValue(
facesContext));
}
public void testSerializeDeserialize() throws Exception {
ValueBindingValueExpressionAdaptor adaptor1 = new ValueBindingValueExpressionAdaptor(
new MockValueExpression("testValue1"));
assertEquals("testValue1", serializeDeserialize(adaptor1).getValue(
facesContext));
ValueBindingValueExpressionAdaptor adaptor2 = new ValueBindingValueExpressionAdaptor(
new StateHolderTestValueExpression("testValue2"));
assertEquals("testValue2", serializeDeserialize(adaptor2).getValue(
facesContext));
}