class ScenarioDefinition implements ImmutableBean {

  static <T> List<T> repeatItems(List<T> inputs, int totalCount, int groupSize) {
    ImmutableList.Builder<T> builder = ImmutableList.builder();

    for (int i = 0; i < (totalCount / groupSize / inputs.size()); i++) {
      for (T input : inputs) {
        builder.addAll(Collections.nCopies(groupSize, input));
      }
    }
    return builder.build();
  }

  private  ScenarioDefinition(
      List<? extends PerturbationMapping<?>> mappings,
      List<String> scenarioNames);

}