### Question:
HttpTask extends AbstractTask { protected void appendMessage(String message) { if (output == null) { output = ""; } if (message != null && !message.trim().isEmpty()) { output += message; } } HttpTask(TaskExecutionContext taskExecutionContext, Logger logger); @Override void init(); @Override void handle(); String getOutput(); @Override AbstractParameters getParameters();  }### Answer:
@Test public void testAppendMessage(){ httpTask.appendMessage("message"); Assert.assertEquals("message",httpTask.getOutput()); }