### Question:
JmsDefaultDeserializationPolicy implements JmsDeserializationPolicy { @Deprecated public void setWhiteList(String allowList) { setAllowList(allowList); } JmsDefaultDeserializationPolicy();  JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source); @Override JmsDeserializationPolicy copy(); @Override boolean isTrustedType(JmsDestination destination, Class<?> clazz); @Deprecated String getWhiteList(); String getAllowList(); @Deprecated String getBlackList(); String getDenyList(); @Deprecated void setWhiteList(String allowList); void setAllowList(String allowList); @Deprecated void setBlackList(String denyList); void setDenyList(String denyList); @Override int hashCode(); @Override boolean equals(Object obj); static final String CATCH_ALL_WILDCARD; @Deprecated
    static final String DEPRECATED_ALLOWLIST_PROPERTY; @Deprecated
    static final String DEPRECATED_DENYLIST_PROPERTY; static final String ALLOWLIST_PROPERTY; static final String DENYLIST_PROPERTY; }### Answer:
@Deprecated @Test public void testSetWhiteList() { JmsDefaultDeserializationPolicy policy = new JmsDefaultDeserializationPolicy(); assertNotNull(policy.getWhiteList()); policy.setWhiteList(null); assertNotNull(policy.getWhiteList()); assertTrue(policy.getWhiteList().isEmpty()); assertNotNull(policy.getAllowList()); assertTrue(policy.getAllowList().isEmpty()); policy.setWhiteList(""); assertNotNull(policy.getWhiteList()); assertTrue(policy.getWhiteList().isEmpty()); assertNotNull(policy.getAllowList()); assertTrue(policy.getAllowList().isEmpty()); policy.setWhiteList("*"); assertNotNull(policy.getWhiteList()); assertFalse(policy.getWhiteList().isEmpty()); assertNotNull(policy.getAllowList()); assertFalse(policy.getAllowList().isEmpty()); policy.setWhiteList("a,b,c"); assertNotNull(policy.getWhiteList()); assertNotNull(policy.getAllowList()); assertFalse(policy.getWhiteList().isEmpty()); assertFalse(policy.getAllowList().isEmpty()); assertEquals("a,b,c", policy.getWhiteList()); assertEquals("a,b,c", policy.getAllowList()); }