import com.licel.jcardsim.base.Simulator;
import org.cryptonit.CryptonitApplet;
import javacard.framework.AID;
import javax.smartcardio.CommandAPDU;
import javax.smartcardio.ResponseAPDU;

class test {
    public static void main(String[] args) {
        Simulator simulator = new Simulator();

        byte[] appletAIDBytes = new byte[]{
            (byte) 0xA0, (byte) 0x00, (byte) 0x00, (byte) 0x03,
            (byte) 0x08, (byte) 0x00, (byte) 0x00, (byte) 0x10,
            (byte) 0x00
        };
        AID appletAID = new AID(appletAIDBytes, (short) 0, (byte) appletAIDBytes.length);

        simulator.installApplet(appletAID, CryptonitApplet.class);
        simulator.selectApplet(appletAID);

        System.out.println("Select Applet");
        ResponseAPDU response = new ResponseAPDU(simulator.transmitCommand((new CommandAPDU(0x00, 0xA4, 0x04, 0x00)).getBytes()));
        System.out.println(response.toString());
        System.out.println(toHex(response.getData()));
    }
}

@@ -195,16 +195,358 @@
  test %7B%0A
+    private static String toHex(byte%5B%5D bytes) %7B%0A        StringBuilder sb = new StringBuilder();%0A        for (int i = 0; i %3C bytes.length; i++) %7B%0A            if((i != 0) && ((i %25 32) == 0)) %7B%0A                sb.append(%22%5Cn%22);%0A            %7D%0A            sb.append(String.format(%22%2502X %22, bytes%5Bi%5D));%0A        %7D%0A        return sb.toString();%0A    %7D%0A%0A
     publ

Add missing toHex function