HmlUtils { public static Hmlid getHmlid(final Hml hml) { checkNotNull(hml); return hml.getHmlid(); } private  HmlUtils(); static Sequence createSequence(final org.biojava.bio.seq.Sequence sequence); static Iterable<Sequence> createSequences(final BufferedReader reader); static Iterable<Sequence> createSequences(final File file); static Iterable<Sequence> createSequences(final URL url); static Iterable<Sequence> createSequences(final InputStream inputStream); static Hmlid getHmlid(final Hml hml); static SymbolList toDnaSymbolList(final Sequence sequence);  }
@Test public void testGetHmlid() throws Exception { Hmlid hmlid = getHmlid(read("hmlid.xml")); assertEquals("1234", hmlid.getRoot()); assertEquals("abcd", hmlid.getExtension()); }
@Test public void testGetHmlidMissing() throws Exception { assertNull(getHmlid(read("missing-hmlid.xml"))); }