SpotifyOAuthFragment extends BaseOAuthFragment { @Override public String getScope() { return "playlist-read-private streaming user-read-private"; }  @Override String getLoginUrl(); @Override String getScope(); @Override String getTokenUrl(); @Override String getClientId(); @Override String getClientSecret(); @Override String getRedirectUri(); @Override String getGrantType(); @Override void saveAuthToken(String authToken, long expire, String refreshToken, String userId);  }
@Test public void test_getScope() { String perm1 = "playlist-read-private"; String perm2 = "streaming"; String perm3 = "user-read-private"; String[] permissions = fragment.getScope().split(" "); assertEquals(3, permissions.length); assertEquals(perm1, permissions[0]); assertEquals(perm2, permissions[1]); assertEquals(perm3, permissions[2]); }