/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio.master;

import alluxio.master.journal.JournalSystem;
import alluxio.master.journal.noop.NoopJournalSystem;

import org.mockito.Mockito;

/**
 * Util methods to help with master testing.
 */
public final class MasterTestUtils {

  /**
   * @return a basic master context for the purpose of testing
   */
  public static MasterContext testMasterContext() {
    return testMasterContext(new NoopJournalSystem());
  }

  /**
   * @return a basic master context for the purpose of testing
   * @param journalSystem a journal system to use in the context
   */
  public static MasterContext testMasterContext(JournalSystem journalSystem) {
    return new MasterContext(journalSystem, new TestSafeModeManager(),
        Mockito.mock(BackupManager.class), -1, -1);
  }

  private MasterTestUtils() {} // Not intended for instatiation.
}

@@ -532,16 +532,57 @@
 aster;%0A%0A
+import static org.mockito.Mockito.mock;%0A%0A
 import a
@@ -677,37 +677,8 @@
 m;%0A%0A
-import org.mockito.Mockito;%0A%0A
 /**%0A
@@ -1249,24 +1249,16 @@
         
-Mockito.
 mock(Bac

Use static imports for standard test utilities for class MasterTestUtilster test utils (#7705)