}
public void testSerialization_Compatibility() throws Exception {
BeanContextServicesSupport support = new BeanContextServicesSupport(
null, Locale.ITALY, true, true);
support
.addBeanContextServicesListener(new MockBeanContextServicesListener());
support
.addBeanContextServicesListener(new MockBeanContextServicesListenerS(
"l2"));
support
.addBeanContextServicesListener(new MockBeanContextServicesListenerS(
"l3"));
support
.addBeanContextServicesListener(new MockBeanContextServicesListener());
support.addService(Collection.class,
new MockBeanContextServiceProvider());
support.addService(List.class,
new MockBeanContextServiceProviderS("p1"));
support
.addService(Set.class,
new MockBeanContextServiceProviderS("p2"));
support.addService(Map.class, new MockBeanContextServiceProvider());
SerializationTest.verifyGolden(this, support, new SerializableAssert(){
public void assertDeserialized(Serializable initial, Serializable deserialized) {
assertEqualsSerially((BeanContextServicesSupport) initial,
(BeanContextServicesSupport) deserialized);
}