Twitter { public static Twitter getInstance() { checkInitialized(); return instance; } private  Twitter(TwitterConfig config); static void initialize(Context context); static void initialize(TwitterConfig config); static Twitter getInstance(); Context getContext(String component); TwitterAuthConfig getTwitterAuthConfig(); ExecutorService getExecutorService(); ActivityLifecycleManager getActivityLifecycleManager(); static boolean isDebug(); static Logger getLogger(); static final String TAG; }
@Test(expected = IllegalStateException.class) public void testGetInstance_shouldThrowWhenNotInitialized() { Twitter.getInstance(); }