@Test(description = "test buildAPIConfig with API tags specified and ensures " +
        "an APIConfig is created")
public void buildApiConfigTestWithTags() throws UserStoreException {

    ServletContext servletContext = new MockServletContext();
    APIResourceConfiguration apiDef = new APIResourceConfiguration();
    List<APIResource> resources = new ArrayList<>();
    APIResource apiResource = new APIResource();
    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.");
}