.hasClass() not working

.hasClass() not working

$("li.fusion").addClass("active"); works fine, but $("li").hasClass("fusion").addClass("active") doesn't work. In the end, I want to replace "fusion" with $(this).attr("class"), but it doesn't look like hasClass is working.

Any ideas?