### Question:
PrimitiveLongIntKeyValueArray { public void reset( int newCapacity ) { size = 0; ensureCapacity( newCapacity ); } PrimitiveLongIntKeyValueArray( int initialCapacity, double growthFactor );  PrimitiveLongIntKeyValueArray( int initialCapacity );  PrimitiveLongIntKeyValueArray(); int capacity(); double growthFactor(); void ensureCapacity( int newCapacity ); int size(); int getOrDefault( long key, int defaultValue ); boolean putIfAbsent( long key, int value ); void reset( int newCapacity ); long[] keys(); static final int DEFAULT_INITIAL_CAPACITY; static final double DEFAULT_GROWTH_FACTOR; }### Answer:
@Test void testReset() { PrimitiveLongIntKeyValueArray map = new PrimitiveLongIntKeyValueArray(); map.putIfAbsent( 1, 100 ); map.putIfAbsent( 2, 200 ); map.putIfAbsent( 3, 300 ); map.reset( 1000 ); assertThat( map.size(), equalTo( 0 ) ); assertThat( map.capacity(), greaterThanOrEqualTo( 1000 ) ); }