Why is unit testing harder in OOP than functional programming?
Objects may maintain internal state, which is not easily accessible by the tests.
Object-oriented languages tend to rely on frameworks such as Spring or Hibernate, which make them difficult to test.
OOP promotes code reuse, which means that your tests have to consider more use cases.
The quality of unit testing frameworks for functional languages is better.