@Test
  public void testGetAdminDeploymentPath_when_vhost_set() throws Exception {
    MockHttpServletRequest request = new MockHttpServletRequest();
    request.setRequestURI("/site/0/");
    request.setContextPath(null);

    VirtualHostHelper.setBasePath(request, "");
    assertEquals("", DeploymentPathResolver.getSiteDeploymentPath(request));

    VirtualHostHelper.setBasePath(request, "/");
    assertEquals("/", DeploymentPathResolver.getSiteDeploymentPath(request));
  }
 @Test
 public void testGetAdminDeploymentPath_when_no_context_path_or_vhost_set() throws Exception {
   MockHttpServletRequest request = new MockHttpServletRequest();
   request.setRequestURI("/site/0/");
   request.setContextPath(null);
   assertEquals("/site/0", DeploymentPathResolver.getSiteDeploymentPath(request));
 }