@Test
public void processDefaultSelectionMatching() {

  // create a SeSelection
  SeSelection seSelection = createSeSelection();
  // create a selection response
  AbstractDefaultSelectionsResponse defaultSelectionsResponse;
  List<SeResponse> seResponses = new ArrayList<SeResponse>();
  ApduResponse apduResponse =
      new ApduResponse(
          ByteArrayUtil.fromHex(
              "CC 11223344 9999 00112233445566778899AABBCCDDEEFF 00112233445566778899AABBCC 9000"),
          null);
  List<ApduResponse> apduResponses = new ArrayList<ApduResponse>();
  apduResponses.add(apduResponse);
  SelectionStatus selectionStatus =
      new SelectionStatus(
          null, new ApduResponse(ByteArrayUtil.fromHex("001122334455669000"), null), true);
  SeResponse seResponse = new SeResponse(true, true, selectionStatus, apduResponses);
  seResponses.add(seResponse);
  defaultSelectionsResponse = new DefaultSelectionsResponse(seResponses);
  // process the selection response with the SeSelection
  SelectionsResult selectionsResult = null;
  try {
    selectionsResult = seSelection.processDefaultSelection(defaultSelectionsResponse);
  } catch (KeypleException e) {
    Assert.fail("Exception raised: " + e.getMessage());
  }
  Assert.assertTrue(selectionsResult.hasActiveSelection());
  Assert.assertNotNull(selectionsResult.getActiveMatchingSe());
}