### Question:
WebHookConfig { public String getStateBuildSuccessfulAsChecked() { return getAsChecked(BUILD_SUCCESSFUL); } @SuppressWarnings("unchecked")  WebHookConfig(Element e);  WebHookConfig(String projectInternalId, String projectExternalId, String url, Boolean enabled, BuildState states, String payloadTemplate, boolean buildTypeAllEnabled, boolean buildTypeSubProjects, Set<String> enabledBuildTypes, WebHookAuthConfig webHookAuthConfig); Element getAsElement(); SortedMap<String,String> getParams(); boolean isEnabledForBuildType(SBuildType sBuildType); boolean isSpecificBuildTypeEnabled(SBuildType sBuildType); Set<String> getEnabledBuildTypesSet(); Boolean getEnabled(); void setEnabled(Boolean enabled); BuildState getBuildStates(); void setBuildStates(BuildState states); String getUrl(); void setUrl(String url); String getUniqueKey(); void setUniqueKey(String uniqueKey); String getEnabledListAsString(); String getWebHookEnabledAsChecked(); String getStateAllAsChecked(); String getStateBuildStartedAsChecked(); String getStateChangesLoadedAsChecked(); String getStateBuildFinishedAsChecked(); String getStateBeforeFinishedAsChecked(); String getStateResponsibilityChangedAsChecked(); String getStateBuildInterruptedAsChecked(); String getStateBuildSuccessfulAsChecked(); String getStateBuildFixedAsChecked(); String getStateBuildFailedAsChecked(); String getStateBuildBrokenAsChecked(); String getPayloadTemplate(); void setPayloadFormat(String payloadFormat); void setPayloadTemplate(String payloadTemplate); Boolean isEnabledForAllBuildsInProject(); void enableForAllBuildsInProject(Boolean allBuildTypesEnabled); Boolean isEnabledForSubProjects(); void enableForSubProjects(Boolean subProjectsEnabled); void clearAllEnabledBuildsInProject(); void enableBuildInProject(String buildTypeId); Map<String,String> getEnabledTemplates(); Boolean getAuthEnabled(); void setAuthEnabled(Boolean authEnabled); void setAuthParameters(Map<String, String> authParameters); void clearAuthParameters(); void setAuthType(String authType); void setAuthPreemptive(Boolean authPreemptive); WebHookAuthConfig getAuthenticationConfig(); List<WebHookFilterConfig> getTriggerFilters(); List<WebHookHeaderConfig> getHeaders(); void setHeaders(List<WebHookHeaderConfig> headers); WebHookConfig copy(); String getProjectInternalId(); void setProjectInternalId(String projectInternalId); String getProjectExternalId(); void setProjectExternalId(String projectExternalId);  }### Answer:
@Test public void testGetStateBuildSuccessfulAsChecked() { assertTrue(webhookAllEnabled.getStateBuildInterruptedAsChecked().equals(CHECKED)); assertFalse(webhookAllDisabled.getStateBuildInterruptedAsChecked().equals(CHECKED)); }