@Test
public void writeDimensionField() throws Exception {

    IAtomContainer mol  = builder.newAtomContainer();
    IAtom          atom = builder.newAtom();
    atom.setSymbol("C");
    atom.setImplicitHydrogenCount(4);
    atom.setPoint2d(new Point2d(0.5, 0.5));
    mol.addAtom(atom);
    StringWriter sw = new StringWriter();
    try (MDLV2000Writer mdlw = new MDLV2000Writer(sw)) {
        mdlw.write(mol);
    }
    assertThat(sw.toString(), containsString("2D"));
}