AecuServiceMBeanImpl extends AnnotatedStandardMBean implements AecuServiceMBean { @Override public List<String> getFiles(String path) throws AecuException { return aecuService.getFiles(path); } AecuServiceMBeanImpl(); @Override String getVersion(); @Override List<String> getFiles(String path); @Override String execute(String path); @Override String executeWithHistory(String path); @Override String getHistory(int start, int count);  }
@Test public void getFiles() throws AecuException { List<String> files = bean.getFiles(PATH); assertEquals(1, files.size()); assertEquals(FILE1, files.get(0)); }