@Test
public void setProgramName() {

    StringWriter sw = new StringWriter();
    try (SDFWriter sdfw = new SDFWriter(sw)) {
        sdfw.getSetting(MDLV2000Writer.OptWriteDefaultProperties)
            .setSetting("false");
        sdfw.getSetting(MDLV2000Writer.OptProgramName)
            .setSetting("Bioclipse");
        sdfw.write(TestMoleculeFactory.make123Triazole());
        sdfw.getSetting(SDFWriter.OptAlwaysV3000)
            .setSetting("true");
        sdfw.write(TestMoleculeFactory.make123Triazole());
    } catch (IOException | CDKException e) {
        e.printStackTrace();
    }
    String sdf = sw.toString();
    for (String mol : sdf.split("\\$\\$\\$\\$", 2)) {
        assertThat(mol, CoreMatchers.containsString("Bioclip"));
    }
}