assertEquals(objectMarshallingStrategies[0].getClass().getName(), "org.drools.container.spring.MockObjectMarshallingStrategy");
}
@Test
public void testEnvMarshallerOrder() throws Exception {
Environment environment = (Environment) context.getBean("drools-env");
assertNotNull(environment);
ObjectMarshallingStrategy[] objectMarshallingStrategies = (ObjectMarshallingStrategy[]) environment.get(EnvironmentName.OBJECT_MARSHALLING_STRATEGIES);
assertEquals(4, objectMarshallingStrategies.length);
assertTrue(objectMarshallingStrategies[0] instanceof SerializablePlaceholderResolverStrategy);
assertTrue(objectMarshallingStrategies[1] instanceof IdentityPlaceholderResolverStrategy);
assertTrue(objectMarshallingStrategies[2] instanceof JPAPlaceholderResolverStrategy);
assertTrue(objectMarshallingStrategies[3] instanceof ProcessInstanceResolverStrategy);