@Before public void setUp() { Executor executor = Executors.newSingleThreadExecutor(); instance = new Reddit(executor); Http mockHttp = mock(Http.class); instance.http = mockHttp; }