CalypsoPo extends AbstractMatchingSe { public final PoRevision getRevision() { return revision; } 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 public void getRevision() { assertThat(getPoApplicationByte((byte) 0x01).getRevision()).isEqualTo(PoRevision.REV2_4); assertThat(getPoApplicationByte((byte) 0x04).getRevision()).isEqualTo(PoRevision.REV2_4); assertThat(getPoApplicationByte((byte) 0x06).getRevision()).isEqualTo(PoRevision.REV2_4); assertThat(getPoApplicationByte((byte) 0x1F).getRevision()).isEqualTo(PoRevision.REV2_4); assertThat(getPoApplicationByte((byte) 0x20).getRevision()).isEqualTo(PoRevision.REV3_1); assertThat(getPoApplicationByte((byte) 0x27).getRevision()).isEqualTo(PoRevision.REV3_1); assertThat(getPoApplicationByte((byte) 0x28).getRevision()).isEqualTo(PoRevision.REV3_2); assertThat(getPoApplicationByte((byte) 0x2F).getRevision()).isEqualTo(PoRevision.REV3_2); assertThat(getPoApplicationByte((byte) 0x90).getRevision()).isEqualTo(PoRevision.REV3_1_CLAP); }