public void testXAuth() throws Exception {
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.setOAuthConsumerKey(desktopConsumerKey);
builder.setOAuthConsumerSecret(desktopConsumerSecret);
Twitter twitter = new TwitterFactory(builder.build()).getInstance();
try {
twitter.getOAuthAccessToken(id1.screenName, id2.password);
fail("expecting TwitterException");
} catch (TwitterException te) {
// id1 doesn't have access to xAuth