I have a class that contains a new() call like this:
public class TestService {
public String test(String test) {
String data = new Engine().getData();
return test + data;
}
}
I can't modify the code, is it possible using Mockito to mock new Engine().getData()?