SelectFileRespPars extends AbstractPoResponseParser { public byte[] getProprietaryInformation() { if (proprietaryInformation == null) { TLV tlv = new TLV(response.getDataOut()); if (!tlv.parse(TAG_PROPRIETARY_INFORMATION, 0)) { throw new IllegalStateException("Proprietary information: tag not found."); } proprietaryInformation = tlv.getValue(); Assert.getInstance().isEqual(proprietaryInformation.length, 23, "proprietaryInformation"); } return proprietaryInformation; } SelectFileRespPars(ApduResponse response, SelectFileCmdBuild builder); byte[] getProprietaryInformation();  }
@Test public void selectFileRespParsTest_getProprietaryInformation() { SelectFileRespPars selectFileRespPars = new SelectFileRespPars( new ApduResponse(ByteArrayUtil.fromHex(PO_SELECT_FILE_3F00_RSP), null), null); assertThat(selectFileRespPars.getProprietaryInformation()) .isEqualTo(ByteArrayUtil.fromHex(PROPRIETARY_INFORMATION)); }