Test card devices configuration reading and device creation.
boolean stub_flag = false;
try {
SlotFactory.init();
}
catch (CardDeviceException e) {
if (e.getMessage().equals("stub")) {
stub_flag = true;
} else {
throw e;
}
}
if (!stub_flag) {
int deviceCount = SlotFactory.getCardDeviceCount();
assertTrue(deviceCount == 1);
int slotCount = SlotFactory.getCardSlotCount();
assertTrue(slotCount == 1);
} else {
assertTrue(true);
}