@Test(description = "test method for setResourceAuthTypes")
public void testSetResourceAuthTypes() throws UserStoreException {

    ServletContext servletContext = new MockServletContext();
    APIResourceConfiguration apiDef = new APIResourceConfiguration();
    List<APIResource> resources = new ArrayList<>();
    apiDef.setResources(resources);
    APIConfig apiConfig = buildApiConfig(servletContext, apiDef);
    apiConfig.setContext("/*");
    TestUtils util = new TestUtils();
    util.setAPIURITemplates(apiConfig, "/*");
    Assert.assertNotNull(apiConfig, "API configuration is null.");
    setResourceAuthTypes(servletContext, apiConfig);
    Set<ApiUriTemplate> templates = apiConfig.getUriTemplates();
    Assert.assertEquals(templates.iterator().next().getAuthType(), AUTH_TYPE_NON_SECURED, "Resource " +
            "auth type is not properly set");
}