SparseBooleanArrayBuilder { @CheckResult public SparseBooleanArrayBuilder clear() { sparseBooleanArray.clear(); return this; } SparseBooleanArrayBuilder();  SparseBooleanArrayBuilder(final int capacity);  SparseBooleanArrayBuilder(@NonNull final SparseBooleanArray sparseBooleanArray); @CheckResult SparseBooleanArrayBuilder put(final int key, final boolean value); @CheckResult SparseBooleanArrayBuilder clear(); @NonNull @CheckResult SparseBooleanArray build();  }
@Test public void clear() { assertThat(new SparseBooleanArrayBuilder().put(5, true).clear().build().size()).isEqualTo(0); }