ImmutableJsonArrayBuilder implements JsonArrayBuilder { @Override public JsonArrayBuilder remove(final int index) { values.remove(index); return this; } private  ImmutableJsonArrayBuilder(); static ImmutableJsonArrayBuilder newInstance(); @Override ImmutableJsonArrayBuilder add(final int value, final int... furtherValues); @Override ImmutableJsonArrayBuilder addIntegers(final Iterable<Integer> intValues); @Override JsonArrayBuilder set(final int index, final int value); @Override ImmutableJsonArrayBuilder add(final long value, final long... furtherValues); @Override ImmutableJsonArrayBuilder addLongs(final Iterable<Long> longValues); @Override JsonArrayBuilder set(final int index, final long value); @Override ImmutableJsonArrayBuilder add(final double value, final double... furtherValues); @Override ImmutableJsonArrayBuilder addDoubles(final Iterable<Double> doubleValues); @Override JsonArrayBuilder set(final int index, final double value); @Override ImmutableJsonArrayBuilder add(final boolean value, final boolean... furtherValues); @Override ImmutableJsonArrayBuilder addBooleans(final Iterable<Boolean> booleanValues); @Override JsonArrayBuilder set(final int index, final boolean value); @Override ImmutableJsonArrayBuilder add(final String value, final String... furtherValues); @Override ImmutableJsonArrayBuilder addStrings(final Iterable<String> stringValues); @Override JsonArrayBuilder set(final int index, final String value); @Override ImmutableJsonArrayBuilder add(final JsonValue value, final JsonValue... furtherValues); @Override ImmutableJsonArrayBuilder addAll(final Iterable<? extends JsonValue> values); @Override JsonArrayBuilder set(final int index, final JsonValue value); @Override Optional<JsonValue> get(final int index); @Override JsonArrayBuilder remove(final int index); @Override ImmutableJsonArrayBuilder remove(final JsonValue value); @Override Iterator<JsonValue> iterator(); @Override boolean isEmpty(); @Override int getSize(); @Override Stream<JsonValue> stream(); @Override JsonArray build(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test(expected = NullPointerException.class) public void tryToRemoveWithNull() { underTest.remove(null); }