Is writing unit test hard?

Is writing unit test hard?

It’s tough to write Unit Tests for historical code since it’s typically Bad Code. There are several dependencies, and classes are vast and perform a variety of tasks. In this instance, unit testing will be difficult.