class Parser {

    static Graph strict(String str) throws InvalidSmilesException {
        return new Parser(CharBuffer.fromString(str), true).molecule();
    }

}

class ParserTest {

    @Test
    public void hydrogen_strict_okay() throws IOException {

        Graph g = Parser.strict("[H][H]");
    }

}