title: PowerMock AmazonS3Client Config Issue
body: <p>I'm getting this stack when trying to run a Mock test using PowerMock</p>
  
  <pre><code> Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.amazonaws.services.s3.AmazonS3Client]: Factory method   'amazonS3Client' threw exception; nested exception is org.apache.http.conn.ssl.SSLInitializationException: class configured for SSLContext: sun.security.ssl.SSLContextImpl$TLSContext not a SSLContext
   Caused by: org.apache.http.conn.ssl.SSLInitializationException: class  configured for SSLContext: sun.security.ssl.SSLContextImpl$TLSContext not a SSLContext
   Caused by: java.security.NoSuchAlgorithmException: class configured for SSLContext: sun.security.ssl.SSLContextImpl$TLSContext not a SSLContext
  </code></pre>
  
  <p>I have tried suggestions of adding an @PowerMockIgnore with the <code>org.apache.http.con.ssl.*</code> but doing that causes my Rabbit connector to fail. I wasn't sure if there are any suggestions have both load for my test. Or not initialize one if it is not needed for the test?</p>
  
  <p>I am limited in what I can provide since this is something for my company.</p>
  
  <p>Using Amazon SDK: 1.11.69</p>
  
  <p>Here is how I'm configuring my tests</p>
  
  <pre><code>@RunWith(PowerMockRunner.class)
  @PowerMockRunnerDelegate(SpringJUnit4ClassRunner.class)
  @WebAppConfiguration
  @ContextConfiguration(locations={"classpath:applicationContext-test.xml"})
  @TestExecutionListeners(listeners={ServletTestExecutionListener.class,
          DependencyInjectionTestExecutionListener.class,
          DirtiesContextTestExecutionListener.class,
          TransactionalTestExecutionListener.class,
          WithSecurityContextTestExecutionListener.class})
  @PrepareForTest({Observable.class,HardDeleteUserCommand.class,SoftDeleteUserCommand.class})
  @PowerMockIgnore({ "javax.management.*", "ch.qos.logback.*",
      "org.slf4j.*" })
  </code></pre>
  
  <p>Example Bean:</p>
  
  <pre><code>@Configuration
  @Profile("Test")
  public class S3Configuration {
      @Bean
      public AmazonS3Client amazonS3Client() throws IOException {
            return new AmazonS3Client(new EnvironmentVariableCredentialsProvider());
      }
  }
  </code></pre>