### Question:
SqoopTask extends AbstractYarnTask { @Override public void init() throws Exception { logger.info("sqoop task params {}", taskExecutionContext.getTaskParams()); sqoopParameters = JSONUtils.parseObject(taskExecutionContext.getTaskParams(),SqoopParameters.class); if (!sqoopParameters.checkParameters()) { throw new RuntimeException("sqoop task params is not valid"); } } SqoopTask(TaskExecutionContext taskExecutionContext, Logger logger); @Override void init(); @Override AbstractParameters getParameters();  }### Answer:
@Test public void testInit(){ try { sqoopTask.init(); } catch (Exception e) { Assert.fail(e.getMessage()); } }