### Question:
LinearProbeLongLongHashMap extends AbstractLongIterable implements MutableLongLongMap, Resource { @Override public long getOrThrow( long key ) { return getIfAbsentPut( key, () -> { throw new IllegalStateException( "Key not found: " + key ); } ); } LinearProbeLongLongHashMap( MemoryAllocator allocator ); @Override void put( long key, long value ); @Override void putAll( LongLongMap map ); @Override long get( long key ); @Override long getIfAbsent( long key, long ifAbsent ); @Override long getIfAbsentPut( long key, long value ); @Override long getIfAbsentPut( long key, LongFunction0 supplier ); @Override long getIfAbsentPutWithKey( long key, LongToLongFunction function ); @Override long getIfAbsentPutWith( long key, LongFunction<? super P> function, P parameter ); @Override long getOrThrow( long key ); @Override void removeKey( long key ); @Override void remove( long key ); @Override long removeKeyIfAbsent( long key, long ifAbsent ); @Override boolean containsKey( long key ); @Override boolean containsValue( long value ); @Override long updateValue( long key, long initialValueIfAbsent, LongToLongFunction function ); @Override long addToValue( long key, long toBeAdded ); @Override void forEachKey( LongProcedure procedure ); @Override void forEachValue( LongProcedure procedure ); @Override void forEachKeyValue( LongLongProcedure procedure ); @Override MutableLongCollection values(); @Override void clear(); @Override MutableLongLongMap flipUniqueValues(); @Override MutableLongLongMap select( LongLongPredicate predicate ); @Override MutableLongLongMap reject( LongLongPredicate predicate ); @Override MutableLongLongMap withKeyValue( long key, long value ); @Override MutableLongLongMap withoutKey( long key ); @Override MutableLongLongMap withoutAllKeys( LongIterable keys ); @Override MutableLongLongMap asUnmodifiable(); @Override MutableLongLongMap asSynchronized(); @Override LazyLongIterable keysView(); @Override RichIterable<LongLongPair> keyValuesView(); @Override ImmutableLongLongMap toImmutable(); @Override MutableLongSet keySet(); @Override MutableLongIterator longIterator(); @Override long[] toArray(); @Override boolean contains( long value ); @Override void forEach( LongProcedure procedure ); @Override void each( LongProcedure procedure ); @Override MutableLongBag select( LongPredicate predicate ); @Override MutableLongBag reject( LongPredicate predicate ); @Override MutableBag<V> collect( LongToObjectFunction<? extends V> function ); @Override long detectIfNone( LongPredicate predicate, long ifNone ); @Override int count( LongPredicate predicate ); @Override boolean anySatisfy( LongPredicate predicate ); @Override boolean allSatisfy( LongPredicate predicate ); @Override boolean noneSatisfy( LongPredicate predicate ); @Override T injectInto( T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function ); @Override long sum(); @Override long max(); @Override long min(); @Override int size(); @Override void appendString( Appendable appendable, String start, String separator, String end ); @Override void close();  }### Answer:
@Test void getOrThrow() { assertThrows( IllegalStateException.class, () -> map.getOrThrow( 0 ) ); assertThrows( IllegalStateException.class, () -> map.getOrThrow( 1 ) ); assertThrows( IllegalStateException.class, () -> map.getOrThrow( 2 ) ); map.putAll( newWithKeysValues( 0, 10, 1, 11, 2, 12 ) ); assertEquals( 10, map.getOrThrow( 0 ) ); assertEquals( 11, map.getOrThrow( 1 ) ); assertEquals( 12, map.getOrThrow( 2 ) ); }