CalypsoPo extends AbstractMatchingSe { public final ElementaryFile getFileByLid(short lid) { Byte sfi = sfiByLid.get(lid); if (sfi == null) { throw new NoSuchElementException( "EF with LID [" + Integer.toHexString(lid & 0xFFFF) + "] is not found."); } return efBySfi.get(sfi); } CalypsoPo(SeResponse selectionResponse); final PoRevision getRevision(); final byte[] getDfNameBytes(); final String getDfName(); final byte[] getApplicationSerialNumberBytes(); final String getApplicationSerialNumber(); final String getStartupInfo(); final String getAtr(); final byte getPlatform(); final byte getApplicationType(); final boolean isConfidentialSessionModeSupported(); final boolean isDeselectRatificationSupported(); final boolean isSvFeatureAvailable(); final boolean isPinFeatureAvailable(); final boolean isPublicAuthenticationSupported(); final byte getApplicationSubtype(); final byte getSoftwareIssuer(); final byte getSoftwareVersion(); final byte getSoftwareRevision(); final byte getSessionModification(); final boolean isDfInvalidated(); final boolean isDfRatified(); final int getSvBalance(); final int getSvLastTNum(); final SvLoadLogRecord getSvLoadLogRecord(); final SvDebitLogRecord getSvDebitLogLastRecord(); final List<SvDebitLogRecord> getSvDebitLogAllRecords(); final DirectoryHeader getDirectoryHeader(); final ElementaryFile getFileBySfi(byte sfi); final ElementaryFile getFileByLid(short lid); final Map<Byte, ElementaryFile> getAllFiles(); final boolean isPinBlocked(); final int getPinAttemptRemaining();  }
@Test(expected = NoSuchElementException.class) public void getFileByLid_whenLidIsNotFound_shouldThrowNSEE() { po.getFileByLid((short) 1); }