@Test(description = "test buildAPIConfig method with API scopes specified and " +
        "ensures an APIConfig is created")
public void buildApiConfigTestWithScope() throws UserStoreException, APIManagerPublisherException {

    ServletContext servletContext = new MockServletContext();
    APIResourceConfiguration apiDef = new APIResourceConfiguration();
    List<APIResource> resources = new ArrayList<>();
    APIResource apiResource = new APIResource();
    ApiScope apiScope = new ApiScope();
    apiScope.setDescription("testing");
    apiResource.setScope(apiScope);
    resources.add(apiResource);
    apiDef.setResources(resources);
    apiDef.setTags(new String[]{"windows", "device_management"});
    APIConfig apiConfig = buildApiConfig(servletContext, apiDef);
    Assert.assertNotNull(apiConfig, "API configuration is null.");
}