@Test
public void checkAuthorization() {

	List<OAuthScope> list = new ArrayList<>();
	OAuthScope scope = new OAuthScope();
	scope.setOperation("Write");
	scope.setResourceName("test");
	scope.setResourceType("topic");
	list.add(scope);
	Resource resource = new Resource(ResourceType.fromString("Topic"), "TEST");
	CustomAuthorizer authorizer = new CustomAuthorizer();
	boolean result = authorizer.checkAuthorization(list, resource, "write");
	assertTrue(result);
}