### Question:
QServer extends QBeanSupport implements QServerMBean, SpaceListener, ISORequestListener { @Override public synchronized void setPort (int port) { this.port = port; setAttr (getAttrs (), "port", port); setModified (true); } QServer(); @Override void initService(); @Override void startService(); @Override void stopService(); @Override void destroyService(); @Override synchronized void setPort(int port); @Override int getPort(); @Override synchronized void setPackager(String packager); @Override String getPackager(); @Override synchronized void setChannel(String channel); @Override String getChannel(); @Override synchronized void setMaxSessions(int maxSessions); @Override int getMaxSessions(); @Override synchronized void setMinSessions(int minSessions); @Override int getMinSessions(); @Override synchronized void setSocketFactory(String sFactory); @Override String getSocketFactory(); @Override String getISOChannelNames(); ISOServer getISOServer(); @Override String getCountersAsString(); @Override String getCountersAsString(String isoChannelName); @Override void notify(Object key, Object value); @Override boolean process(ISOSource source, ISOMsg m);  }### Answer:
@Test public void testSetPort() throws Throwable { QServer qServer = new QServer(); qServer.setPersist(new Element("testQServerName", "testQServerUri")); qServer.setPort(100); assertEquals(100, qServer.getPort(), "qServer.getPort()"); assertTrue(qServer.isModified(), "qServer.isModified()"); }