### Question:
PipelineTask { public static String buildTaskId(String taskName, String parameters) { if (parameters == null || parameters.isEmpty()) { return taskName.trim(); } else { return String.format(TASK_ID_FORMAT, taskName.trim(), parameters.trim()); } } PipelineTask();  PipelineTask(String name); static String buildTaskId(String taskName, String parameters); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void createWithParameters() { String name = PipelineTask.buildTaskId(TASK_NAME, TASK_PARAMS); PipelineTask task = new PipelineTask(name); Assert.assertEquals(TASK_NAME, task.getName()); Assert.assertEquals(TASK_PARAMS, task.getParameters()); }