private Router getRouter() {
    return (Router)getContext().getAttribute("name.node");
  }
@Test
  public void testWebHdfsCreateWithMounts() throws Exception {
    // the file is created at mounted ns (ns1)
    String mountPoint = "/tmp-ns1";
    String path = "/tmp-ns1/file";
    createMountTableEntry(
        router.getRouter(), mountPoint,
        DestinationOrder.RANDOM, Collections.singletonList("ns1"));
    URL url = new URL(getUri(path));
    LOG.info("URL: {}", url);
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("PUT");
    assertEquals(HttpURLConnection.HTTP_CREATED, conn.getResponseCode());
    verifyFile("ns1", path, true);
    verifyFile("ns0", path, false);
    conn.disconnect();
  }