@Test
public void testPrepareReadCounterFile() {

  CalypsoPo calypsoPoRev31 = createCalypsoPo(FCI_REV31);
  poTransaction = new PoTransaction(new SeResource<CalypsoPo>(poReader, calypsoPoRev31));
  poCommandsTestSet.put(
      PO_READ_REC_SFI7_REC1_6B_COUNTER_CMD, PO_READ_REC_SFI7_REC1_6B_COUNTER_RSP);
  poTransaction.prepareReadCounterFile(FILE7, 2);
  poTransaction.processPoCommands();
  assertThat(calypsoPoRev31.getFileBySfi(FILE7).getData().getContentAsCounterValue(1))
      .isEqualTo(ByteArrayUtil.threeBytesToInt(ByteArrayUtil.fromHex(FILE7_REC1_COUNTER1), 0));
  assertThat(calypsoPoRev31.getFileBySfi(FILE7).getData().getContentAsCounterValue(2))
      .isEqualTo(ByteArrayUtil.threeBytesToInt(ByteArrayUtil.fromHex(FILE7_REC1_COUNTER2), 0));
}