title: Illegal reflective access by org.powermock.reflect.internal.WhiteboxImpl to method java.lang.Object.clone()
body: <p>I want to use this JUnit test for testing private method:</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest(classes = ReportingProcessor.class)
  public class ReportingTest {
  
      @Autowired
      ReportingProcessor reportingProcessor;
  
      @Test
      public void reportingTest() throws Exception {
  
          ContextRefreshedEvent contextRefreshedEvent = PowerMockito.mock(ContextRefreshedEvent.class);
          Whitebox.invokeMethod(reportingProcessor, "collectEnvironmentData", contextRefreshedEvent);
  
      }
  }
  </code></pre>
  
  <p>But I get <code>WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by org.powermock.reflect.internal.WhiteboxImpl (file:/C:/Users/Mainuser/.m2/repository/org/powermock/powermock-reflect/2.0.2/powermock-reflect-2.0.2.jar) to method java.lang.Object.clone()
  WARNING: Please consider reporting this to the maintainers of org.powermock.reflect.internal.WhiteboxImpl
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release</code></p>
  
  <p>Is there some way to fix this?</p>