### Question:
AplAppStatus { public Collection<DurableTaskInfo> getTasksList() { return tasks.values(); } @Inject  AplAppStatus(); String durableTaskStart(String name, String description, boolean isCritical); String durableTaskStart(String name, String description, boolean isCritical, Double percentComplete); synchronized String durableTaskUpdate(String taskId, Double percentComplete, String message); synchronized String durableTaskUpdate(String taskId, Double percentComplete, String message, int keepPrevMessages); synchronized void durableTaskUpdate(String taskId, Double percentComplete, String message, int keepPrevMessages, Double offset); synchronized double durableTaskUpdate(String taskId, String message, double addPercents); synchronized void durableTaskPaused(String taskId, String message); synchronized void durableTaskContinue(String taskId, String message); synchronized void durableTaskFinished(String taskId, boolean isCancelled, String message); synchronized void clearFinished(Long secondsAgo); Collection<DurableTaskInfo> getTasksList(); synchronized Optional<DurableTaskInfo> findTaskByName(String taskName); double durableTaskUpdateAddPercents(String taskId, Double percentIncreaseValue);  }### Answer:
@Test void getTasksList() { String taskId = status.durableTaskStart("name1", "descr1", true); assertNotNull(taskId); taskId = status.durableTaskStart("name1", "descr1", true); assertNotNull(taskId); taskId = status.durableTaskStart("name1", "descr1", false); assertNotNull(taskId); assertEquals(3, status.getTasksList().size()); }