public static void userhomeSmokeTest(ViewContext context) {
    try {
      UserService  userservice = new UserService(context, getViewConfigs(context));
      userservice.homeDir();
    } catch (WebApplicationException ex) {
      throw ex;
    } catch (Exception ex) {
      throw new ServiceFormattedException(ex.getMessage(), ex);
    }
  }
Checks connection to User HomeDirectory
@param context View Context
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/files/FileService.java