In the comments you state that you want to avoid calling your webservices during test.
i dont want any value from my webservices during my return.
I would argue you also don't want this if the log level setting of your application is set to WARNING or higher. (I'm assuming java default logging here)
The solution is then simple : use the logging form which takes a Supplier
: Logger.info(Supplier<String> msgSupplier)
So your finally block would become :
} finally {
logger.info(() -> obj.webService());
}
Then, for your tests, or in production for that matter, it's simply a case of setting your logging to Level.NONE, and the supplier will never be executed.