@Test
public void testDeserializationPolicyValuesAreApplied() {

    this.properties.getDeserializationPolicy().setWhiteList(Collections.singletonList("org.apache.qpid.proton.*"));
    this.properties.getDeserializationPolicy().setBlackList(Collections.singletonList("org.apache.activemq..*"));
    JmsConnectionFactory factory = new AMQP10JMSConnectionFactoryFactory(this.properties).createConnectionFactory(JmsConnectionFactory.class);
    JmsDefaultDeserializationPolicy policy = (JmsDefaultDeserializationPolicy) factory.getDeserializationPolicy();
    assertEquals("org.apache.qpid.proton.*", policy.getWhiteList());
    assertEquals("org.apache.activemq..*", policy.getBlackList());
}