I spent hours today and realize it was a silly mistake.
Please check your @PrepareForTest if you are using PowerMockito.
@PrepareForTest({Observable.class})
also don't forget to mock it. I did it on @before :
PowerMockito.mockStatic(Observable.class);
I hope it can help. Thank you