### Question:
HarmonicLoopAltWeighter { public boolean setHarmonicLoopAltWeight(Integer indexToWeight, ProgressionUnit currentProgressionUnit, ProgressionUnit priorProgressionUnit, Iterable<AnalyticsHorizontal> analyticsHorizontals) { Application.logger.debug("LOG: HARMONIC SETWEIGHT"); CurrentPriorBar bars = WeightHelper.createCurrentPriorBar(indexToWeight, currentProgressionUnit, priorProgressionUnit); Collection<HarmonicLoopWeightTask> collection = new ArrayList<>(); bars.getCurrentBar().getHarmonicLoopAltOptions().forEach(optionToWeight -> { HarmonicLoopWeightTask loop = new HarmonicLoopWeightTask(optionToWeight, bars, harmonicVerticalClassifier, rhythmWeighter, harmonicLoopTimeseriesClassifier, harmonicAltThemeWeighter ); collection.add(loop); }); try { for (HarmonicLoopWeightTask task : collection) { Application.logger.debug("LOG: Harmonic Alt weight status : " + task.call()); } } catch (Exception e) { Application.logger.debug("LOG:", e); } return true; }  @Autowired void HarmonicLoopAltWeighter(IRhythmWeighter rhythmWeighter, IVerticalClassifier harmonicVerticalClassifier, HarmonicLoopTimeseriesClassifier harmonicLoopTimeseriesClassifier, HarmonicAltThemeWeighter harmonicAltThemeWeighter); boolean setHarmonicLoopAltWeight(Integer indexToWeight, ProgressionUnit currentProgressionUnit, ProgressionUnit priorProgressionUnit, Iterable<AnalyticsHorizontal> analyticsHorizontals);  }### Answer:
@Test public void shouldSetHarmonicLoopAltWeights() { Iterable<AnalyticsHorizontal> analyticsHorizontals = analyticsHorizontalDal.findAll(); harmonicLoopAltWeighter.setHarmonicLoopAltWeight(LoopPositions.POSITION_THREE, currentProgressionUnit, priorProgressionUnit, analyticsHorizontals); for(HarmonicLoop hAltOption : currentProgressionUnit.getProgressionUnitBars().get(LoopPositions.POSITION_THREE).getHarmonicLoopAltOptions()){ assertThat(hAltOption.getVerticalWeight()).isNotNull(); assertThat(hAltOption.getRhythmicWeight()).isNotNull(); assertThat(hAltOption.getTimeseriesWeight()).isNotNull(); assertThat(hAltOption.getThemeWeight()).isNotNull(); } for(HarmonicLoop hAltOption : currentProgressionUnit.getProgressionUnitBars().get(LoopPositions.POSITION_TWO).getHarmonicLoopAltOptions()){ assertThat(hAltOption.getVerticalWeight()).isNull(); assertThat(hAltOption.getRhythmicWeight()).isNull(); assertThat(hAltOption.getTimeseriesWeight()).isNull(); assertThat(hAltOption.getEqWeight()).isNull(); assertThat(hAltOption.getThemeWeight()).isNull(); } }