@Test
public void parseScopes() {

	Set<String> set = new HashSet<>();
	set.add("urn:kafka:topic:test:write");
	set.add("urn:kafka:group:test:read");
	CustomAuthorizer authorizer = new CustomAuthorizer();
	List<OAuthScope> scopes = authorizer.parseScopes(set);
	assertTrue(scopes.size() == 2);
	assertTrue(scopes.get(0).getOperation().equals("write"));
	assertTrue(scopes.get(0).getResourceName().equals("test"));
	assertTrue(scopes.get(0).getResourceType().equals("topic"));
}