### Question:
BooleanPM extends TextPM implements IBooleanPM { public void setBoolean(Boolean b) { if (b == null) { this.setText(null); } else { Options<Boolean> options = this.getOptions(); String txt = options.get(b); this.setText(txt); } } BooleanPM(); void setBoolean(Boolean b); Boolean getBoolean(); void setDefaultBoolean(Boolean value);  }### Answer:
@Test public void setBoolean() { BooleanPM model = new BooleanPM(); model.setBoolean(true); assertEquals("pM.getText()", model.getOptions().get(true), model.getText()); model.setBoolean(false); assertEquals("pM.getText()", model.getOptions().get(false), model.getText()); model.setBoolean(null); assertEquals("pM.getText()", "", model.getText()); }
@Test public void isModified() { BooleanPM pModel = new BooleanPM(); pModel.setBoolean(true); pModel.preset(); assertEquals("pModel.isModified()", false, pModel.isModified()); pModel.setBoolean(false); assertEquals("pModel.isModified()", true, pModel.isModified()); pModel.reset(); assertEquals("pModel.isModified()", false, pModel.isModified()); }