CardResponseAPDU extends CardAPDU { public byte getSW1() { return (byte) (trailer[0] & 0xFF); } CardResponseAPDU();  CardResponseAPDU(byte[] responseAPDU);  CardResponseAPDU(byte[] data, byte[] trailer);  CardResponseAPDU(TransmitResponse transmitResponse); static byte[] getData(byte[] responseAPDU); void setTrailer(byte[] trailer); byte[] getTrailer(); static byte[] getTrailer(byte[] responseAPDU); byte getSW1(); byte getSW2(); short getSW(); byte[] getStatusBytes(); String getStatusMessage(); boolean isNormalProcessed(); boolean isWarningProcessed(); boolean isExecutionError(); boolean isCheckingError(); boolean isPositiveResponse(List<byte[]> responses); byte[] toByteArray(); String toHexString(); @Override String toString();  }
@Test public void testGetSW1() { byte[] apdu = new byte[]{(byte) 0x63, (byte) 0xC2}; CardResponseAPDU instance = new CardResponseAPDU(apdu); byte expResult = 99; byte result = instance.getSW1(); assertEquals(expResult, result); }