### Question:
StubReader extends AbstractThreadedLocalReader { @Override public Map<String, String> getParameters() { return parameters; } 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 public void testSetParameters() throws Exception { Map<String, String> p1 = new HashMap<String, String>(); p1.put(StubReader.ALLOWED_PARAMETER_1, "a"); p1.put(StubReader.ALLOWED_PARAMETER_2, "a"); reader.setParameters(p1); Map<String, String> p2 = reader.getParameters(); assert (p1.equals(p2)); }