### Question:
FillsRenderer implements IFillsRenderer { @Override public List<Fill> createFillsToRender(List<ProgressionUnit> progressionUnits) { List<Fill> fills = new ArrayList<>(); for (ProgressionUnit pUnit : progressionUnits) { for (Integer i = 0; i < pUnit.getProgressionUnitBars().size(); i++) { if (i != 0 && pUnit.getProgressionUnitBars().get(i - 1).getFill() != null && !pUnit.getProgressionUnitBars().get(i - 1).getFill().getBarCount().equals(2)) { fills.add(null); } else if (i != 0 && pUnit.getProgressionUnitBars().get(i - 1).getFill() != null && pUnit.getProgressionUnitBars().get(i - 1).getFill().getBarCount().equals(2)) { } else if (pUnit.getProgressionUnitBars().get(i).getFill() != null) { fills.add(pUnit.getProgressionUnitBars().get(i).getFill()); } else { fills.add(null); } } } return fills; }  @Override void render(QueueState queueState); @Override List<Fill> createFillsToRender(List<ProgressionUnit> progressionUnits); @Override File createFillShim(QueueState queueState); String createNameForFillShim();  }### Answer:
@Test public void shouldCreateFillsRenderArray(){ Fill oneBarFill = new Fill(); oneBarFill.setBarCount(1); Fill twoBarFill = new Fill(); twoBarFill.setBarCount(2); ProgressionUnitBar aa = new ProgressionUnitBar(); ProgressionUnitBar ab = new ProgressionUnitBar(); ProgressionUnitBar ac = new ProgressionUnitBar(); ac.setFill(oneBarFill); ProgressionUnitBar ad = new ProgressionUnitBar(); ProgressionUnitBar ba = new ProgressionUnitBar(); ProgressionUnitBar bb = new ProgressionUnitBar(); ProgressionUnitBar bc = new ProgressionUnitBar(); bc.setFill(twoBarFill); ProgressionUnitBar bd = 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)); List<Fill> fills = fillsRenderer.createFillsToRender(Arrays.asList(progressionUnitOne, progressionUnitTwo)); assertThat(fills.size()).isEqualTo(7); assertThat(fills.get(0)).isNull(); assertThat(fills.get(1)).isNull(); assertThat(fills.get(2)).isNotNull(); assertThat(fills.get(3)).isNull(); assertThat(fills.get(4)).isNull(); assertThat(fills.get(5)).isNull(); assertThat(fills.get(6)).isNotNull(); }