code: public static synchronized void replayAll(Object... additionalMocks) {
          MockRepository.addObjectsToAutomaticallyReplayAndVerify(additionalMocks);
  
          for (Object classToReplayOrVerify : MockRepository.getObjectsToAutomaticallyReplayAndVerify()) {
              replay(classToReplayOrVerify);
          }
      }
docs: Replay all classes and mock objects known by PowerMock. This includes all
  classes that are prepared for test using the {@link PrepareForTest} or
  {@link PrepareOnlyThisForTest} annotations and all classes that have had
  their static initializers removed by using the
  {@link SuppressStaticInitializationFor} annotation. It also includes all
  mock instances created by PowerMock such as those created or used by
  {@link #createMock(Class, Method...)},
  {@link #mockStatic(Class, Method...)},
  {@link #expectNew(Class, Object...)},
  {@link #createPartialMock(Class, String...)} etc.
  <p/>
  To make it easy to pass in additional mocks <i>not</i> created by the
  PowerMock API you can optionally specify them as <tt>additionalMocks</tt>
  . These are typically those mock objects you have created using pure
  EasyMock or EasyMock class extensions. No additional mocks needs to be
  specified if you're only using PowerMock API methods.
  <p/>
  Note that the <tt>additionalMocks</tt> are also automatically verified
  when invoking the {@link #verifyAll()} method.
  
  @param additionalMocks Mocks not created by the PowerMock API. These are typically
  those mock objects you have created using pure EasyMock or
  EasyMock class extensions.