### Question:
DataStoreUtils { public static int getInt(final int offset, final byte[] data) { return ByteBuffer.wrap(data, offset, 4).getInt(); }  static int getInt(final int offset, final byte[] data); static String nameFromOffset(final long offset, final String fileSuffix); static ClientBroker.TransferedMessage getTransferMsg(final ByteBuffer dataBuffer, int dataTotalSize,
                                                                final HashMap<String, CountItem> countMap,
                                                                final String statisKeyBase,
                                                                final StringBuilder sBuilder); static final int MAX_MSG_TRANSFER_SIZE; static final int MAX_MSG_DATA_STORE_SIZE; static final int MAX_READ_BUFFER_ADJUST; static final int STORE_DATA_PREFX_LEN; static final int STORE_DATA_HEADER_LEN; static final int STORE_HEADER_POS_LENGTH; static final int STORE_HEADER_POS_DATATYPE; static final int STORE_HEADER_POS_CHECKSUM; static final int STORE_HEADER_POS_QUEUEID; static final int STORE_HEADER_POS_QUEUE_LOGICOFF; static final int STORE_HEADER_POS_RECEIVEDTIME; static final int STORE_HEADER_POS_REPORTADDR; static final int STORE_HEADER_POS_KEYCODE; static final int STORE_HEADER_POS_MSGID; static final int STORE_HEADER_POS_MSGFLAG; static final int STORE_HEADER_POS_MSGDATA; static final int STORE_DATA_TOKER_BEGIN_VALUE; static final int STORE_DATA_TOKER_BLANK_VALUE; static final long MAX_FILE_ROLL_CHECK_DURATION; static final long MAX_FILE_NO_WRITE_DURATION; static final long MAX_FILE_VALID_DURATION; static final int STORE_INDEX_HEAD_LEN; static final int INDEX_POS_PARTITIONID; static final int INDEX_POS_DATAOFFSET; static final int INDEX_POS_MSG_SIZE; static final int INDEX_POS_KEY_CODE; static final int INDEX_POS_TIME_RECV; static final int STORE_MAX_MESSAGE_STORE_LEN; static final String DATA_FILE_SUFFIX; static final String INDEX_FILE_SUFFIX; }### Answer:
@Test public void getInt() { ByteBuffer bf = ByteBuffer.allocate(100); bf.putInt(123); byte[] data = bf.array(); int offset = 0; int val = DataStoreUtils.getInt(offset, data); Assert.isTrue(val == 123); }