HdfFileChannel { public long getUserBlockSize() { return sb.getBaseAddressByte(); } 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 testGetUserBlockSize() { when(sb.getBaseAddressByte()).thenReturn(1L); assertThat(hdfFc.getUserBlockSize(), is(equalTo(1L))); }