### Question:
HitRenderer implements IHitRenderer { @Override public List<Hit> createHitsToRender(List<ProgressionUnit> progressionUnits) { List<Hit> hits = new ArrayList<>(); for(ProgressionUnit progressionUnit : progressionUnits){ int shimCount = 4; if(progressionUnit.getProgressionUnitBars().get(0).getHit() != null){ hits.add(progressionUnit.getProgressionUnitBars().get(0).getHit()); shimCount = shimCount - progressionUnit.getProgressionUnitBars().get(0).getHit().getBarCount(); } for(int i=0; i<shimCount; i++){ hits.add(null); } } return hits; }  @Override void render(QueueState queueState); @Override List<Hit> createHitsToRender(List<ProgressionUnit> progressionUnits); @Override File createHitShim(QueueState queueState); String createNameForHitShim(); @Autowired
    public AppConfigs appConfigs; }### Answer:
@Test public void shouldCreateHitRenderArray(){ Hit oneBarHit = new Hit(); oneBarHit.setBarCount(1); Hit twoBarHit = new Hit(); twoBarHit.setBarCount(2); Hit threeBarHit = new Hit(); threeBarHit.setBarCount(3); ProgressionUnitBar aa = new ProgressionUnitBar(); aa.setHit(oneBarHit); ProgressionUnitBar ab = new ProgressionUnitBar(); ProgressionUnitBar ac = new ProgressionUnitBar(); ProgressionUnitBar ad = new ProgressionUnitBar(); ProgressionUnitBar ba = new ProgressionUnitBar(); ba.setHit(twoBarHit); ProgressionUnitBar bb = new ProgressionUnitBar(); ProgressionUnitBar bc = new ProgressionUnitBar(); ProgressionUnitBar bd = new ProgressionUnitBar(); ProgressionUnitBar ca = new ProgressionUnitBar(); ca.setHit(threeBarHit); ProgressionUnitBar cb = new ProgressionUnitBar(); ProgressionUnitBar cc = new ProgressionUnitBar(); ProgressionUnitBar cd = new ProgressionUnitBar(); ProgressionUnit progressionUnitOne = new ProgressionUnit(); progressionUnitOne.setBarCount(4); progressionUnitOne.setProgressionUnitBars(Arrays.asList(aa,ab,ac,ad)); ProgressionUnit progressionUnitTwo = new ProgressionUnit(); progressionUnitTwo.setBarCount(4); progressionUnitTwo.setProgressionUnitBars(Arrays.asList(ba,bb,bc,bd)); ProgressionUnit progressionUnitThree = new ProgressionUnit(); progressionUnitThree.setBarCount(4); progressionUnitThree.setProgressionUnitBars(Arrays.asList(ca,cb,cc,cd)); List<Hit> hits = hitRenderer.createHitsToRender(Arrays.asList(progressionUnitOne, progressionUnitTwo, progressionUnitThree)); assertThat(hits.size()).isEqualTo(9); assertThat(hits.get(0)).isNotNull(); assertThat(hits.get(1)).isNull(); assertThat(hits.get(2)).isNull(); assertThat(hits.get(3)).isNull(); assertThat(hits.get(4)).isNotNull(); assertThat(hits.get(5)).isNull(); assertThat(hits.get(6)).isNull(); assertThat(hits.get(7)).isNotNull(); assertThat(hits.get(8)).isNull(); }