### Question:
PrimitiveLongIntKeyValueArray { public int size() { return size; } 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 testSize() { PrimitiveLongIntKeyValueArray map = new PrimitiveLongIntKeyValueArray(); assertThat( map.size(), equalTo( 0 ) ); map.putIfAbsent( 1, 100 ); map.putIfAbsent( 2, 200 ); map.putIfAbsent( 3, 300 ); assertThat( map.size(), equalTo( 3 ) ); }