### Question:
BuildState { public boolean enabled(BuildStateEnum currentBuildState) { return states.get(currentBuildState).isEnabled(); } BuildState(); Set<BuildStateEnum> getStateSet(); boolean enabled(BuildStateEnum currentBuildState); boolean enabled(BuildStateEnum currentBuildState, boolean success, boolean changed); void setEnabled(BuildStateEnum currentBuildState, boolean enabled); BuildState setAllEnabled(); void enable(BuildStateEnum currentBuildState); void disable(BuildStateEnum currentBuildState); String getShortName(BuildStateEnum state); String getDescriptionSuffix(BuildStateEnum state); boolean allEnabled(); boolean noneEnabled();  }### Answer:
@Test public void testEnabled() { BuildState state = new BuildState(); state.enable(BuildStateEnum.BUILD_STARTED); assertFalse(state.enabled(BuildStateEnum.BEFORE_BUILD_FINISHED)); assertTrue(state.enabled(BuildStateEnum.BUILD_STARTED)); }