### Question:
Module { public void setStartupErrorMessage(String e) { if (e == null) { throw new ModuleException("Startup error message cannot be null", this.getModuleId()); } this.startupErrorMessage = e; } Module(String name);  Module(String name, String moduleId, String packageName, String author, String description, String version); @Override boolean equals(Object obj); @Override int hashCode(); ModuleActivator getModuleActivator(); void setModuleActivator(ModuleActivator moduleActivator); String getActivatorName(); void setActivatorName(String activatorName); String getAuthor(); void setAuthor(String author); String getDescription(); void setDescription(String description); String getName(); void setName(String name); String getRequireDatabaseVersion(); void setRequireDatabaseVersion(String requireDatabaseVersion); List<String> getRequiredModules(); String getRequiredModuleVersion(String moduleName); void setRequiredModules(List<String> requiredModules); void addRequiredModule(String requiredModule, String version); void setRequiredModulesMap(Map<String, String> requiredModulesMap); Map<String, String> getRequiredModulesMap(); void setStartBeforeModulesMap(Map<String, String> startBeforeModulesMap); Map<String, String> getStartBeforeModulesMap(); List<String> getStartBeforeModules(); void setAwareOfModulesMap(Map<String, String> awareOfModulesMap); List<String> getAwareOfModules(); String getAwareOfModuleVersion(String awareOfModule); String getRequireOpenmrsVersion(); void setRequireOpenmrsVersion(String requireOpenmrsVersion); String getModuleId(); String getModuleIdAsPath(); void setModuleId(String moduleId); String getPackageName(); void setPackageName(String packageName); String getVersion(); void setVersion(String version); String getUpdateURL(); void setUpdateURL(String updateURL); String getDownloadURL(); void setDownloadURL(String downloadURL); String getUpdateVersion(); void setUpdateVersion(String updateVersion); List<Extension> getExtensions(); void setExtensions(List<Extension> extensions); void setExtensionNames(Map<String, String> map); List<AdvicePoint> getAdvicePoints(); void setAdvicePoints(List<AdvicePoint> advicePoints); File getFile(); void setFile(File file); @Deprecated Map<String, Properties> getMessages(); @Deprecated void setMessages(Map<String, Properties> messages); List<GlobalProperty> getGlobalProperties(); void setGlobalProperties(List<GlobalProperty> globalProperties); List<Privilege> getPrivileges(); void setPrivileges(List<Privilege> privileges); Document getConfig(); void setConfig(Document config); Document getSqldiff(); void setSqldiff(Document sqldiff); List<String> getMappingFiles(); void setMappingFiles(List<String> mappingFiles); Set<String> getPackagesWithMappedClasses(); void setPackagesWithMappedClasses(Set<String> packagesToScan); boolean isMandatory(); void setMandatory(boolean mandatory); boolean isCoreModule(); boolean isStarted(); void setStartupErrorMessage(String e); void setStartupErrorMessage(String exceptionMessage, Throwable t); String getStartupErrorMessage(); Boolean hasStartupError(); void clearStartupError(); @Override String toString(); void disposeAdvicePointsClassInstance(); List<ModuleConditionalResource> getConditionalResources(); void setConditionalResources(List<ModuleConditionalResource> conditionalResources); boolean isCore();  }### Answer:
@Test(expected = ModuleException.class) public void setStartupErrorMessage_shouldThrowExceptionWhenMessageIsNull() { testModule.setStartupErrorMessage(null); }
@Test(expected = ModuleException.class) public void setStartupErrorMessage_shouldThrowExceptionWhenThrowableIsNull() { testModule.setStartupErrorMessage("error", null); }