Junit and mock task.