@Test
public void writeDimensionField3D() throws Exception {

    IChemObjectBuilder builder = SilentChemObjectBuilder.getInstance();
    IAtomContainer mol = builder.newAtomContainer();
    IAtom atom = builder.newAtom();
    atom.setSymbol("C");
    atom.setImplicitHydrogenCount(4);
    atom.setPoint3d(new Point3d(0.5, 0.5, 0.1));
    mol.addAtom(atom);
    StringWriter sw = new StringWriter();
    try (MDLV3000Writer mdlw = new MDLV3000Writer(sw)) {
        mdlw.write(mol);
    }
    assertThat(sw.toString(), containsString("3D"));
}