@Test
public void testFailingWithoutEmail() throws TwitterException {
TwitterSearch ts = mock(TwitterSearch.class);
when(ts.initTwitter4JInstance("normalToken", "tSec", true)).thenReturn(ts);
//when(ts.getCredits()).thenReturn(new Credits("normalToken", "tSec", "x", "y"));
when(ts.getTwitterUser()).thenReturn(new Twitter4JUser("testuser"));
WebResponse resp = mock(WebResponse.class);
JUser user = new JUser("testuser");
ElasticUserSearch uSearch = newMockUserSearch(user);
MySession session = (MySession) tester.getWicketSession();