@Test
public void testSgroupBracketStyle() throws Exception {

    try (MDLV2000Reader mdlr = new MDLV2000Reader(getClass().getResourceAsStream("/data/mdl/sgroup-sru-bracketstyles.mol"))) {
        IAtomContainer container = mdlr.read(new AtomContainer());
        List<Sgroup> sgroups = container.getProperty(CDKConstants.CTAB_SGROUPS);
        assertNotNull(sgroups);
        assertThat(sgroups.size(), is(2));
        Sgroup sgroup = sgroups.get(0);
        assertThat(sgroup.getType(), is(SgroupType.CtabStructureRepeatUnit));
        assertThat((Integer) sgroup.getValue(SgroupKey.CtabBracketStyle), is(1));
        sgroup = sgroups.get(1);
        assertThat(sgroup.getType(), is(SgroupType.CtabStructureRepeatUnit));
        assertThat((Integer) sgroup.getValue(SgroupKey.CtabBracketStyle), is(1));
    }
}