@Override
	public List<GrantedAuthority> getAuthorities(JsonObject introspectionResponse) {
		List<GrantedAuthority> auth = new ArrayList<>(getAuthorities());

		if (introspectionResponse.has("scope") && introspectionResponse.get("scope").isJsonPrimitive()) {
			String scopeString = introspectionResponse.get("scope").getAsString();
			Set<String> scopes = OAuth2Utils.parseParameterList(scopeString);
			for (String scope : scopes) {
				auth.add(new SimpleGrantedAuthority("OAUTH_SCOPE_" + scope));
			}
		}

		return auth;
	}
@Test
	public void testGetAuthoritiesJsonObject_withoutScopes() {

		List<GrantedAuthority> expected = new ArrayList<>();
		expected.add(new SimpleGrantedAuthority("ROLE_API"));

		List<GrantedAuthority> authorities = granter.getAuthorities(introspectionResponse);

		assertTrue(authorities.containsAll(expected));
		assertTrue(expected.containsAll(authorities));
	}