@Test(expected = IllegalArgumentException.class)
public void svUndebitCmdBuild_mode_compat_negative_amount() {

  /** @see Calypso Layer ID 8.02 (200108) */
  SvUndebitCmdBuild svUndebitCmdBuild =
      new SvUndebitCmdBuild(
          PoClass.ISO,
          PoRevision.REV3_1,
          /* amount */ -1, /* KVC */
          (byte) 0xAA, /* date */
          ByteArrayUtil.fromHex("1122"),
          /* time */ ByteArrayUtil.fromHex("3344"));
  svUndebitCmdBuild.finalizeBuilder(
      /* SAM ID + prepare SV Debit data */ ByteArrayUtil.fromHex(
          "AABBCCDD5566771234561122334455"));
  String apdu = ByteArrayUtil.toHex(svUndebitCmdBuild.getApduRequest().getBytes());
}