@Test
public void samSelectionRequest_parse() {

  SamSelector samSelector =
      SamSelector.builder() //
          .samRevision(SamRevision.AUTO) //
          .build();
  SamSelectionRequest samSelectionRequest = new SamSelectionRequest(samSelector);
  SelectionStatus selectionStatus = new SelectionStatus(new AnswerToReset(ATR), null, true);
  CalypsoSam calypsoSam =
      samSelectionRequest.parse(new SeResponse(true, true, selectionStatus, null));
  // minimal checks on the CalypsoSam result
  assertThat(calypsoSam.getSamRevision()).isEqualTo(SamRevision.C1);
  assertThat(calypsoSam.getSerialNumber()).isEqualTo(SN);
}