### Question:
IntArray implements Matrix, ImmutableBean, Serializable { public static IntArray filled(int size) { if (size == 0) { return EMPTY; } return new IntArray(new int[size]); } private  IntArray(int[] array); static IntArray of(); static IntArray of(int value); static IntArray of(int value1, int value2); static IntArray of(int value1, int value2, int value3); static IntArray of(int value1, int value2, int value3, int value4); static IntArray of(int value1, int value2, int value3, int value4, int value5); static IntArray of(int value1, int value2, int value3, int value4, int value5, int value6); static IntArray of(
      int value1,
      int value2,
      int value3,
      int value4,
      int value5,
      int value6,
      int value7); static IntArray of(
      int value1,
      int value2,
      int value3,
      int value4,
      int value5,
      int value6,
      int value7,
      int value8); static IntArray of(
      int value1,
      int value2,
      int value3,
      int value4,
      int value5,
      int value6,
      int value7,
      int value8,
      int... otherValues); static IntArray of(int size, IntUnaryOperator valueFunction); static IntArray of(IntStream stream); static IntArray ofUnsafe(int[] array); static IntArray copyOf(Collection<Integer> collection); static IntArray copyOf(int[] array); static IntArray copyOf(int[] array, int fromIndex); static IntArray copyOf(int[] array, int fromIndexInclusive, int toIndexExclusive); static IntArray filled(int size); static IntArray filled(int size, int value); @Override int dimensions(); @Override int size(); boolean isEmpty(); int get(int index); boolean contains(int value); int indexOf(int value); int lastIndexOf(int value); void copyInto(int[] destination, int offset); IntArray subArray(int fromIndexInclusive); IntArray subArray(int fromIndexInclusive, int toIndexExclusive); int[] toArray(); int[] toArrayUnsafe(); List<Integer> toList(); IntStream stream(); void forEach(IntIntConsumer action); IntArray with(int index, int newValue); IntArray plus(int amount); IntArray minus(int amount); IntArray multipliedBy(int factor); IntArray dividedBy(int divisor); IntArray map(IntUnaryOperator operator); IntArray mapWithIndex(IntBinaryOperator function); IntArray plus(IntArray other); IntArray minus(IntArray other); IntArray multipliedBy(IntArray other); IntArray dividedBy(IntArray other); IntArray combine(IntArray other, IntBinaryOperator operator); int combineReduce(IntArray other, IntTernaryOperator operator); IntArray concat(int... arrayToConcat); IntArray concat(IntArray arrayToConcat); IntArray sorted(); int min(); int max(); int sum(); int reduce(int identity, IntBinaryOperator operator); @Override MetaBean metaBean(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final IntArray EMPTY; }### Answer:
@Test public void test_filled() { assertContent(IntArray.filled(0)); assertContent(IntArray.filled(3), 0, 0, 0); }
@Test public void test_filled_withValue() { assertContent(IntArray.filled(0, 1)); assertContent(IntArray.filled(3, 1), 1, 1, 1); }