Sometimes we can have a code where we have some method which calls a bunch of internal methods one by one. Like in the example below: If we want to monitor the particular class with the Java Melody it’s enough
Mock null value as the parameter of called method (Java 8)
Mockito is a powerful framework, which allows us to mock classes, method behavior etc. Sometimes we would like to mock method call with null value as the parameter. Let’s suppose we have a Foo class which autowires Bar class. We