@Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfForEmptyStrings() { extractor.extract(""); }
@Test(expected = OAuthException.class) public void shouldThrowExceptionIfForNoMatch() { extractor.extract("These Are Not The Droids You're Looking For"); }
@Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfForNullParameters() { extractor.extract(null); }
@Test public void shouldParseResponse() { Token token = extractor.extract(response); assertEquals(token.getToken(), "I0122HHJKLEM21F3WLPYHDKGKZULAUO4SGMV3ABKFTDT3T3X"); }