### Question:
MsTeamsNotificationConfig { public String getEnabledListAsString(){ if (!this.enabled){ return "Disabled"; } else if (states.allEnabled()){ return "All Build Events"; } else if (states.noneEnabled()) { return "None"; } else { String enabledStates = ""; if (states.enabled(BuildStateEnum.BUILD_STARTED)){ enabledStates += ", Build Started"; } if (states.enabled(BuildStateEnum.BUILD_INTERRUPTED)){ enabledStates += ", Build Interrupted"; } if (states.enabled(BuildStateEnum.BEFORE_BUILD_FINISHED)){ enabledStates += ", Build Almost Completed"; } if (states.enabled(BuildStateEnum.RESPONSIBILITY_CHANGED)){ enabledStates += ", Build Responsibility Changed"; } if (states.enabled(BuildStateEnum.BUILD_FAILED)){ if (states.enabled(BuildStateEnum.BUILD_BROKEN)){ enabledStates += ", Build Broken"; } else { enabledStates += ", Build Failed"; } } if (states.enabled(BuildStateEnum.BUILD_SUCCESSFUL)){ if (states.enabled(BuildStateEnum.BUILD_FIXED)){ enabledStates += ", Build Fixed"; } else { enabledStates += ", Build Successful"; } } if (enabledStates.length() > 0){ return enabledStates.substring(1); } else { return "None"; } } } @SuppressWarnings("unchecked")  MsTeamsNotificationConfig(Element e);  MsTeamsNotificationConfig(String token,
								   Boolean enabled,
								   BuildState states,
								   boolean buildTypeAllEnabled,
								   boolean buildTypeSubProjects,
								   Set<String> enabledBuildTypes,
								   boolean mentionChannelEnabled,
								   boolean mentionMsTeamsUserEnabled); Element getAsElement(); boolean isEnabledForBuildType(SBuildType sBuildType); String getBuildTypeCountAsFriendlyString(); Boolean getEnabled(); void setEnabled(Boolean enabled); BuildState getBuildStates(); void setBuildStates(BuildState states); String getToken(); void setToken(String apiToken); String getUniqueKey(); void setUniqueKey(String uniqueKey); String getEnabledListAsString(); String getMsTeamsNotificationEnabledAsChecked(); String getStateAllAsChecked(); String getStateBuildStartedAsChecked(); String getStateBuildFinishedAsChecked(); String getStateBeforeFinishedAsChecked(); String getStateResponsibilityChangedAsChecked(); String getStateBuildInterruptedAsChecked(); String getStateBuildSuccessfulAsChecked(); String getStateBuildFixedAsChecked(); String getStateBuildFailedAsChecked(); String getStateBuildBrokenAsChecked(); Boolean isEnabledForAllBuildsInProject(); void enableForAllBuildsInProject(Boolean allBuildTypesEnabled); Boolean isEnabledForSubProjects(); void enableForSubProjects(Boolean subProjectsEnabled); void clearAllEnabledBuildsInProject(); void enableBuildInProject(String buildTypeId); void setMentionChannelEnabled(boolean mentionChannelEnabled); boolean getMentionChannelEnabled(); void setMentionMsTeamsUserEnabled(boolean mentionMsTeamsUserEnabled); boolean getMentionMsTeamsUserEnabled(); boolean hasCustomContent(); void setHasCustomContent(boolean customContent); MsTeamsNotificationContentConfig getContent(); void setContent(MsTeamsNotificationContentConfig content);  }### Answer:
@Test public void testGetEnabledListAsString() { assertTrue(msteamsnotificationAllEnabled.getEnabledListAsString().equals("All Build Events")); assertTrue(msteamsnotificationAllDisabled.getEnabledListAsString().equals("None")); assertTrue(msteamsnotificationMostEnabled.getEnabledListAsString().equals(" Build Started, Build Interrupted, Build Almost Completed, Build Failed, Build Successful")); }