### Question:
BuildState { public BuildState setAllEnabled(){ for (BuildStateEnum state : states.keySet()){ switch (state){ case BUILD_BROKEN: disable(state); break; case BUILD_FIXED: disable(state); break; default: enable(state); break; } } return this; } 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 testSetAllEnabled(){ BuildState state = new BuildState(); assertTrue(state.noneEnabled()); state.setAllEnabled(); assertTrue(state.allEnabled()); }