PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.