In my test case, I need test time sensitive method, in that method we\'re using java 8 class LocalDate, it is not Joda.
What can I do to change time
You can simply pass the current date as function parameter.
fun doSmthng(now: LocalDate = LocalDate.now()) {
testAnotherService.doSmthng1(TestObj("my message!", now))
}
And in the test you can pass some specific date and assert on it. Idea is to inject the dependencies instead of creating explicitly in the function body.