VolleyX { public static void setRequestQueue(RequestQueue queue) { if (!sInited) throw new IllegalStateException("call init first"); if (queue != null) sRequestQueue = queue; }  static void init(Context context); static Observable<T> from(final Request<T> request); static Observable<T> from(final Request<T> request, final String listernerField); static void setRequestQueue(RequestQueue queue); static RequestQueue DEFAULT_REQUESTQUEUE; }
@Test public void testSetRequestQueue() throws Exception { RequestQueue requestQueue = Mockito.mock(RequestQueue.class); VolleyX.setRequestQueue(requestQueue); assertThat(VolleyX.sRequestQueue, is(requestQueue)); }