@Before
  public void setUp() throws Exception {
    fs = cluster.getFileSystem();
    dir = new Path(hbaseDir, currentTest.getMethodName());
    this.currentServername = ServerName.valueOf(currentTest.getMethodName(), 16010, 1);
    wals = new WALFactory(conf, this.currentServername.toString());
  }
WAL tests that can be reused across providers.
hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALFactory.java