HdfFileChannel { public int getSizeOfLengths() { return sb.getSizeOfLengths(); } 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 testGetSizeOfLengths() { when(sb.getSizeOfLengths()).thenReturn(1); assertThat(hdfFc.getSizeOfLengths(), is(equalTo(1))); }