### Question:
StubReader extends AbstractThreadedLocalReader { @Override public void setParameter(String name, String value) throws KeypleReaderException { if (name.equals(ALLOWED_PARAMETER_1) || name.equals(ALLOWED_PARAMETER_2)) { parameters.put(name, value); } else if (name.equals(CONTACTS_PARAMETER)) { transmissionMode = TransmissionMode.CONTACTS; } else if (name.equals(CONTACTLESS_PARAMETER)) { transmissionMode = TransmissionMode.CONTACTLESS; } else { throw new KeypleReaderException("parameter name not supported : " + name); } } StubReader(String name); @Override void closePhysicalChannel(); @Override byte[] transmitApdu(byte[] apduIn); @Override void setParameter(String name, String value); @Override Map<String, String> getParameters(); @Override TransmissionMode getTransmissionMode(); void insertSe(StubSecureElement _se); void removeSe(); static final String ALLOWED_PARAMETER_1; static final String ALLOWED_PARAMETER_2; static final String CONTACTLESS_PARAMETER; static final String CONTACTS_PARAMETER; }### Answer:
@Test(expected = KeypleReaderException.class) public void testSetWrongParameter() throws Exception { reader.setParameter("WRONG_PARAMETER", "a"); }