### Question:
SwiftObjectMemIo extends BaseMemIo implements ObjectMemIo<T> { @Override public void release() { mem = null; } SwiftObjectMemIo();  SwiftObjectMemIo(int cap); @Override T get(long pos); @Override boolean isReadable(); @Override void put(long pos, T val); @Override void release();  }### Answer:
@Test public void release() { SwiftObjectMemIo<Integer> objectMemIo = new SwiftObjectMemIo<Integer>(1); objectMemIo.release(); try { objectMemIo.get(0); fail(); } catch (Exception ignore) { } }