@Test
public void testConverterDeltaState6() throws Exception
{
UIOutput output = new UIOutput();
output.setId("output1");
output.setConverter(new LongConverter());
output.markInitialState();
//Force parentDelta to be not null
output.getAttributes().put("style", "style1");
Object[] state1 = (Object[])output.saveState(facesContext);
// null delta expected
Assert.assertNotNull(state1);
Assert.assertEquals(state1.length, 1);
UIOutput output2 = new UIOutput();
output2.setId("output1");
Converter converter2 = new LongConverter();
output2.setConverter(converter2);
output2.markInitialState();
output2.restoreState(facesContext, state1);