### Question:
SaveModel { public boolean isConfigurationValid() { return !this.saveModel || ((this.outputModelDirectory != null) && !this.outputModelDirectory.isEmpty()); } SaveModel();  SaveModel(final boolean saveModel, final String outputDir); boolean isConfigurationValid(); boolean isDirectoryValid(); void printConfiguration(); boolean isSaveModel(); void setSaveModel(final boolean saveModel); String getOutputModelDirectory(); void setOutputModelDirectory(final String outputModelDirectory); static final String DEFAULT_OUTPUT_DIR_NAME; }### Answer:
@Test public void isConfigurationValid_saveTrueDefaultDir_valid() { assertTrue(saveTrueDefaultDir.isConfigurationValid()); }
@Test public void isConfigurationValid_saveTrueEmptyDir_nonValid() { assertFalse(saveTrueEmptyDir.isConfigurationValid()); }
@Test public void isConfigurationValid_saveTrueNullDir_nonValid() { assertFalse(saveTrueNullDir.isConfigurationValid()); }
@Test public void isConfigurationValid_saveFalseDefaultDir_valid() { assertTrue(saveFalseDefaultDir.isConfigurationValid()); }
@Test public void isConfigurationValid_saveFalseEmptyDir_valid() { assertTrue(saveFalseEmptyDir.isConfigurationValid()); }
@Test public void isConfigurationValid_saveFalseNullDir_valid() { assertTrue(saveFalseNullDir.isConfigurationValid()); }