### Question:
AppendOnlyValuesContainer implements ValuesContainer { @Nonnull @Override public Value remove( long ref ) { assertNotClosed(); final Value removed = get( ref ); final int chunkIdx = (int) (ref >>> 32); final int chunkOffset = (int) ref; final ByteBuffer chunk = chunks.get( chunkIdx ); chunk.put( chunkOffset, (byte) REMOVED ); return removed; } AppendOnlyValuesContainer( MemoryAllocator allocator ); @VisibleForTesting  AppendOnlyValuesContainer( int chunkSize, MemoryAllocator allocator ); @Override long add( @Nonnull Value value ); @Nonnull @Override Value get( long ref ); @Nonnull @Override Value remove( long ref ); @Override void close();  }### Answer:
@Test void remove() { final long ref = container.add( intValue( 42 ) ); container.remove( ref ); assertThrows( IllegalArgumentException.class, () -> container.get( ref ) ); }