@Test
public void fragmentGroupingFollowedByAtomLabels() {

    CxSmilesState state = new CxSmilesState();
    assertThat(CxSmilesParser.processCx("|f:0.1.2.3,4.5.6,$;;;R$|", state), is(not(-1)));
    assertThat(state.fragGroups, is(Arrays.asList(Arrays.asList(0, 1, 2, 3),
                                                  Arrays.asList(4, 5, 6))));
    assertThat(state.atomLabels, hasEntry(3, "R"));
}