### Question:
GenerateServiceCommand extends AbstractCommand { public void setClasspathDir(File classpathDir) { this.classpathDir = classpathDir; } GenerateServiceCommand(); File getClasspathDir(); void setClasspathDir(File classpathDir); String getServiceClassNameSuffix(); void setServiceClassNameSuffix(String serviceClassNameSuffix); String getServicePackageName(); void setServicePackageName(String servicePackageName); String getServiceTemplateFileName(); void setServiceTemplateFileName(String serviceTemplateFileName); String getAbstractServiceTemplateFileName(); void setAbstractServiceTemplateFileName(
            String abstractServiceTemplateFileName); String getNamesClassNameSuffix(); void setNamesClassNameSuffix(String namesClassNameSuffix); String getNamesPackageName(); void setNamesPackageName(String namesPackageName); String getEntityPackageName(); void setEntityPackageName(String entityPackageName); String getEntityClassNamePattern(); void setEntityClassNamePattern(String entityClassNamePattern); String getIgnoreEntityClassNamePattern(); void setIgnoreEntityClassNamePattern(
            String ignoreEntityClassNamePattern); File getJavaFileDestDir(); void setJavaFileDestDir(File javaFileDestDir); String getJavaFileEncoding(); void setJavaFileEncoding(String javaFileEncoding); boolean isOverwrite(); void setOverwrite(boolean overwrite); boolean isOverwriteAbstractService(); void setOverwriteAbstractService(boolean overwriteAbstractService); String getRootPackageName(); void setRootPackageName(String rootPackageName); String getTemplateFileEncoding(); void setTemplateFileEncoding(String templateFileEncoding); File getTemplateFilePrimaryDir(); void setTemplateFilePrimaryDir(File templateFilePrimaryDir); boolean isUseNamesClass(); void setUseNamesClass(boolean useNamesClass);  }### Answer:
@Test public void testInit() throws Exception { GenerateServiceTestCommand command = new GenerateServiceTestCommand(); command.setConfigPath("s2jdbc-gen-core-test.dicon"); command.setClasspathDir(new File("dir")); command.validate(); command.init(); assertNotNull(command.entityMetaReader); assertNotNull(command.serviceTestModelFactory); assertNotNull(command.generator); }