@SuppressWarnings("OverlyBroadThrowsClause")
@Test
public void testLoadXml() throws Exception {

    final MMOs root = JaxbLoader.loadXml(TEST_XML);
    assertNotNull(root);
    final MMO mmo = root.getMMO().get(0);
    assertNotNull(mmo);
    final Utterance utterance = mmo.getUtterances().getUtterance().get(0);
    assertNotNull(utterance);
    final Phrase phrase = utterance.getPhrases().getPhrase().get(0);
    assertNotNull(phrase);
    final Mapping mapping = phrase.getMappings().getMapping().get(0);
    assertNotNull(mapping);
    final Candidate candidate = mapping.getMappingCandidates().getCandidate().get(0);
    assertNotNull(candidate);
    assertEquals(candidate.getCandidateCUI(), "C0004096");
    assertEquals(candidate.getCandidatePreferred(), "Asthma");
    final SemType semType = candidate.getSemTypes().getSemType().get(0);
    assertEquals(semType.getvalue(), "dsyn");
}