CloseSessionRespPars extends AbstractPoResponseParser { public CloseSessionRespPars(ApduResponse response, CloseSessionCmdBuild builder) { super(response, builder); parse(response.getDataOut()); } CloseSessionRespPars(ApduResponse response, CloseSessionCmdBuild builder); byte[] getSignatureLo(); byte[] getPostponedData();  }
@Test public void closeSessionRespPars() { byte[] response = {0x4D, (byte) 0xBD, (byte) 0xC9, 0x60, (byte) 0x90, 0x00}; List<ApduResponse> responses = new ArrayList<ApduResponse>(); ApduResponse apduResponse = new ApduResponse(response, null); responses.add(apduResponse); SeResponse seResponse = new SeResponse( true, true, new SelectionStatus(null, new ApduResponse(ByteArrayUtil.fromHex("9000"), null), true), responses); AbstractApduResponseParser apduResponseParser = new CloseSessionRespPars(seResponse.getApduResponses().get(0), null); Assert.assertArrayEquals(response, apduResponseParser.getApduResponse().getBytes()); }