static method in non final class mock

change doreturn to when