### Question:
FileByteBlock implements ByteBlock { public byte getByte(BigInteger bigIndex) throws ByteBlockAccessException { int index = bigIndex.intValue(); if (index < buf.length) { return buf[index]; } return 0; } FileByteBlock(byte[] b); String getLocationRepresentation(BigInteger bigIndex); int getMaxLocationRepresentationSize(); String getIndexName(); BigInteger getLength(); byte getByte(BigInteger bigIndex); int getInt(BigInteger bigIndex); long getLong(BigInteger bigIndex); void setByte(BigInteger bigIndex, byte value); void setInt(BigInteger bigIndex, int value); void setLong(BigInteger bigIndex, long value); boolean isEditable(); void setBigEndian(boolean bigEndian); boolean isBigEndian(); int getAlignment(int radix);  }### Answer:
@Test public void testGetByte() throws Exception { for (int i = 0; i < 100; i++) { assertEquals((byte) i, block.getByte(BigInteger.valueOf(i))); } }