### Question:
JsonArrayBuilderImpl implements JsonArrayBuilder, Serializable { @Override public JsonArray build() { if(tmpList == null) { return JsonValue.EMPTY_JSON_ARRAY; } return new JsonArrayImpl(Collections.unmodifiableList(tmpList), bufferProvider); } protected  JsonArrayBuilderImpl();  JsonArrayBuilderImpl(final JsonArray initialData,
                                final BufferStrategy.BufferProvider<char[]> provider);  JsonArrayBuilderImpl(final Collection<?> initialData, final BufferStrategy.BufferProvider<char[]> provider); @Override JsonArrayBuilder addAll(final JsonArrayBuilder builder); @Override JsonArrayBuilder add(final int index, final JsonValue value); @Override JsonArrayBuilder add(final int index, final String value); @Override JsonArrayBuilder add(final int index, final BigDecimal value); @Override JsonArrayBuilder add(final int index, final BigInteger value); @Override JsonArrayBuilder add(final int index, final int value); @Override JsonArrayBuilder add(final int index, final long value); @Override JsonArrayBuilder add(final int index, final double value); @Override JsonArrayBuilder add(final int index, final boolean value); @Override JsonArrayBuilder addNull(final int index); @Override JsonArrayBuilder add(final int index, final JsonObjectBuilder builder); @Override JsonArrayBuilder add(final int index, final JsonArrayBuilder builder); @Override JsonArrayBuilder set(final int index, final JsonValue value); @Override JsonArrayBuilder set(final int index, final String value); @Override JsonArrayBuilder set(final int index, final BigDecimal value); @Override JsonArrayBuilder set(final int index, final BigInteger value); @Override JsonArrayBuilder set(final int index, final int value); @Override JsonArrayBuilder set(final int index, final long value); @Override JsonArrayBuilder set(final int index, final double value); @Override JsonArrayBuilder set(final int index, final boolean value); @Override JsonArrayBuilder setNull(final int index); @Override JsonArrayBuilder set(final int index, final JsonObjectBuilder builder); @Override JsonArrayBuilder set(final int index, final JsonArrayBuilder builder); @Override JsonArrayBuilder remove(final int index); JsonArrayBuilder add(final Object value); @Override JsonArrayBuilder add(final JsonValue value); @Override JsonArrayBuilder add(final String value); @Override JsonArrayBuilder add(final BigDecimal value); @Override JsonArrayBuilder add(final BigInteger value); @Override JsonArrayBuilder add(final int value); @Override JsonArrayBuilder add(final long value); @Override JsonArrayBuilder add(final double value); @Override JsonArrayBuilder add(final boolean value); @Override JsonArrayBuilder addNull(); @Override JsonArrayBuilder add(final JsonObjectBuilder builder); @Override JsonArrayBuilder add(final JsonArrayBuilder builder); @Override JsonArray build();  }### Answer:
@Test public void emptyArray() { final JsonArrayBuilder builder = Json.createArrayBuilder(); assertEquals("[]", builder.build().toString()); }