HdfFileChannel { public int getSizeOfOffsets() { return sb.getSizeOfOffsets(); } HdfFileChannel(FileChannel fileChannel, Superblock superblock); ByteBuffer readBufferFromAddress(long address, int length); ByteBuffer map(long address, long length); ByteBuffer mapNoOffset(long address, long length); long getUserBlockSize(); Superblock getSuperblock(); FileChannel getFileChannel(); int getSizeOfOffsets(); int getSizeOfLengths(); final void close(); long size();  }
@Test void testGetSizeOfOffsets() { when(sb.getSizeOfOffsets()).thenReturn(1); assertThat(hdfFc.getSizeOfOffsets(), is(equalTo(1))); }