"Also make sure the method is not final - you cannot stub final methods."
));
}
public void missingMethodInvocation() {
throw new MissingMethodInvocationException(join(
"when() requires an argument which has to be a method call on a mock.",
"For example:",
" when(mock.getArticles()).thenReturn(articles);",
"Also make sure the method is not final - you cannot stub final methods."
));