### Question:
ListComponentsCommand implements AdminCommand, AdminCommandSecurity.AccessCheckProvider { String getSnifferEngines(final Module module, final boolean format) { return getSniffers (module.getEngines(), format); }  @Override Collection<? extends AccessCheck> getAccessChecks(); void execute(AdminCommandContext context); @Param(primary=true, optional=true)
    public String target; @Param(optional=true, defaultValue="false", name="long", shortName="l")
    public Boolean long_opt; @Param(optional=true, defaultValue="false", shortName="t")
    public Boolean terse; @Param(optional=true, defaultValue="false")
    public Boolean subcomponents; }### Answer:
@Test public void getSnifferEnginesTest() { try { Engine eng1 = new EngineTest(); eng1.setSniffer("web"); Engine eng2 = new EngineTest(); eng2.setSniffer("security"); List<Engine> engines = new ArrayList<Engine>(); engines.add(eng1); engines.add(eng2); ApplicationTest app = new ApplicationTest(); List<Module> modules = new ArrayList<Module>(); ModuleTest aModule = new ModuleTest(); aModule.setEngines(engines); modules.add(aModule); app.setModules(modules); String snifferEngines = lcc.getSnifferEngines(app.getModule().get(0), true); assertEquals("compare all sniffer engines", "<web, security>", snifferEngines); } catch (Exception ex) { } }