Explore why and how to use PowerMock to test private methods in Java, focusing on scenarios where refactoring isn't feasible and the benefits for continuous delivery.
TL;DR: PowerMock allows testing private methods, useful for existing codebases and optimizing test run times in continuous delivery. Example shows using @RunWith(PowerMockRunner.class) and Whitebox.invokeMethod.