### Question:
NsclientDetector extends BasicDetector<NsclientRequest, NsclientPacket> { public void setCommand(String command) { this.command = command; } NsclientDetector();  NsclientDetector(final String serviceName, final int port); String getCommand(); void setCommand(String command); String getPassword(); void setPassword(String password); String getParameter(); void setParameter(String parameter); int getWarnPerc(); void setWarnPerc(int warnPerc); int getCritPerc(); void setCritPerc(int critPerc);  }### Answer:
@Test(timeout=90000) public void testServerSuccess() throws Exception{ m_detector.setCommand("CLIENTVERSION"); m_detector.init(); Assert.assertTrue(m_detector.isServiceDetected(m_server.getInetAddress())); }
@Test(timeout=90000) public void testBadCommand() throws Exception{ m_detector.setCommand("UNKNOWN"); m_detector.init(); Assert.assertFalse(m_detector.isServiceDetected(m_server.getInetAddress())); }