// The configuration metadata for "bean3" sets *all* of the properties
// of the new bean to match the corresponding property values for "bean1".
// Therefore, all of the assertions below should match the corresponding
// assertions from testBean1().
TestBean bean = (TestBean) resolver.resolveVariable(facesContext, "bean3");
assertNotNull(bean);
assertEquals((byte) 11, bean.getByteProperty()); // Configured
assertEquals('a', bean.getCharProperty()); // Defaulted
assertEquals((double) 222.0, bean.getDoubleProperty()); // Configured and overridden
assertEquals((float) 3.0, bean.getFloatProperty()); // Defaulted
assertEquals(44, bean.getIntProperty()); // Configured
assertEquals((long) 5, bean.getLongProperty()); // Defaulted
assertEquals((short) 6, bean.getShortProperty()); // Defaulted
assertEquals("String", bean.getStringProperty()); // Defaulted
}