@Before
public void setUp() throws Exception {
if (client.getAuthScheme() instanceof OAuth3LeggedScheme) {
OAuth3LeggedScheme scheme = (OAuth3LeggedScheme) client.getAuthScheme();
// for 3-legged OAuth, ignore the process to get access token
Token token = new Token("key", "secret");
scheme.setAccessToken(token);
}
clear();
}