@Ignore
@Test
public void testBasicLoad() throws Exception {

  final Props props = new Props(this.baseProps);
  props.put(XmlUserManager.XML_FILE_PARAM,
      "unit/test-conf/azkaban-users-test1.xml");
  UserManager manager = null;
  try {
    manager = new XmlUserManager(props, () -> this.fileWatcher);
  } catch (final RuntimeException e) {
    e.printStackTrace();
    fail("XmlUserManager should've found file azkaban-users.xml");
  }
  try {
    manager.getUser("user0", null);
  } catch (final UserManagerException e) {
    System.out.println("Exception handled correctly: " + e.getMessage());
  }
  try {
    manager.getUser(null, "etw");
  } catch (final UserManagerException e) {
    System.out.println("Exception handled correctly: " + e.getMessage());
  }
  try {
    manager.getUser("user0", "user0");
  } catch (final UserManagerException e) {
    System.out.println("Exception handled correctly: " + e.getMessage());
  }
  try {
    manager.getUser("user0", "password0");
  } catch (final UserManagerException e) {
    e.printStackTrace();
    fail("XmlUserManager should've returned a user.");
  }
  final User user0 = manager.getUser("user0", "password0");
  checkUser(user0, "role0", "group0");
  final User user1 = manager.getUser("user1", "password1");
  checkUser(user1, "role0,role1", "group1,group2");
  final User user2 = manager.getUser("user2", "password2");
  checkUser(user2, "role0,role1,role2", "group1,group2,group3");
  final User user3 = manager.getUser("user3", "password3");
  checkUser(user3, "role1,role2", "group1,group2");
  final User user4 = manager.getUser("user4", "password4");
  checkUser(user4, "role1,role2", "group1,group2");
  final User user5 = manager.getUser("user5", "password5");
  checkUser(user5, "role1,role2", "group1,group2");
  final User user6 = manager.getUser("user6", "password6");
  checkUser(user6, "role3,role2", "group1,group2");
  final User user7 = manager.getUser("user7", "password7");
  checkUser(user7, "", "group1");
  final User user8 = manager.getUser("user8", "password8");
  checkUser(user8, "role3", "");
  final User user9 = manager.getUser("user9", "password9");
  checkUser(user9, "", "");
}