def METHOD_NAME():
  """
  Test correct reading of long residue name mmCIF file into hierarchy.
  Testing output to pdb and cif.
  """
  inp = iotbx.pdb.input(lines=mmcif_str.split("\n"), source_info=None)
  h = inp.construct_hierarchy()
  chains = list(h.overall_counts().chain_ids.keys())
  chains.sort()
  answer = ['A']
  assert (chains == answer), '%s %s' % (chains, answer)
  # print(h.overall_counts().resnames)
  resnames = sorted(h.overall_counts().resnames.keys())
  assert resnames == [' CA', '7ZTVU', 'HOH', 'LYS'], resnames
  o_pdb_str = h.as_pdb_string()
  # print(o_pdb_str)
  # Note here incorrect/trimmed residue names
  # There's no way to correctly output resnames longer than 3 char in PDB format
  # print(o_pdb_str)
  assert_lines_in_text(o_pdb_str, """\