CardResponseAPDU extends CardAPDU { public short getSW() { return (short) (((trailer[0] & 0xFF) << 8) | (trailer[1] & 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 testGetSW() { byte[] apdu = new byte[]{(byte) 0x63, (byte) 0xC2}; CardResponseAPDU instance = new CardResponseAPDU(apdu); short expResult = 25538; short result = instance.getSW(); assertEquals(expResult, result); }