public static String getEffectivePath(String path, int port) {
    return path.replace("_PORT", String.valueOf(port));
  }
@Test(timeout=180000)
  public void testSocketPathSetGet() throws IOException {
    Assert.assertEquals("/var/run/hdfs/sock.100",
        DomainSocket.getEffectivePath("/var/run/hdfs/sock._PORT", 100));
  }