### Question:
AppConfig extends GlideApplication { public ImageLoader getImageLoader() { if (requestQueue == null) { requestQueue = Volley.newRequestQueue(getApplicationContext()); } if (imageLoader == null) { this.imageLoader = new ImageLoader(requestQueue, new LruBitmapCache()); } return imageLoader; }  UtilitiesProvider getUtilsProvider(); @Override void onCreate(); @Override void onTerminate(); void runInBackground(Runnable runnable); static void toast(Context context, @StringRes int message); static void toast(Context context, String message); void runInApplicationThread(Runnable r); static synchronized AppConfig getInstance(); ImageLoader getImageLoader(); UtilsHandler getUtilsHandler(); void setMainActivityContext(@NonNull Activity activity); ScreenUtils getScreenUtils(); @Nullable Context getMainActivityContext(); ExplorerDatabase getExplorerDatabase(); UtilitiesDatabase getUtilitiesDatabase(); static final String TAG; }### Answer:
@Test public void testGetImageLoader() throws Exception { Field requestQueue = AppConfig.class.getDeclaredField("requestQueue"); Field imageLoader = AppConfig.class.getDeclaredField("imageLoader"); requestQueue.setAccessible(true); imageLoader.setAccessible(true); assertNull(requestQueue.get(AppConfig.getInstance())); assertNull(imageLoader.get(AppConfig.getInstance())); assertNotNull(AppConfig.getInstance().getImageLoader()); }