SparseArrayBuilder { @CheckResult public SparseArrayBuilder<T> clear() { sparseArray.clear(); return this; } SparseArrayBuilder();  SparseArrayBuilder(final int capacity);  SparseArrayBuilder(@NonNull final SparseArray<T> sparseArray); @CheckResult SparseArrayBuilder<T> put(final int key, final T value); @CheckResult SparseArrayBuilder<T> clear(); @NonNull @CheckResult SparseArray<T> build();  }
@Test public void clear() { assertThat(new SparseArrayBuilder<Integer>().put(5, 3).clear().build().size()).isEqualTo(0); }