*/
@Test
public void socketFactoryNotAddedToParamsWhenTrustStoreNotEnabled()
throws Exception
{
final TrustStore trustStore = mock(TrustStore.class);
when(trustStore.getSSLContextFor(smtpTrustStoreKey())).thenReturn(null);
final SMTPSessionParametersCustomizer underTest = new SMTPSessionParametersCustomizer(trustStore);
final Properties properties = new Properties();
properties.setProperty("mail.smtp.socketFactory.class", "Foo.class");
underTest.customize(properties);