@Test
public void testAccessControlAllowMethodTest() {
ServletContext context = new MockServletContext();
context.setAttribute(CorsConstants.CORS_ORIGIN, Collections.singleton("*"));
MultivaluedMap<String,String> header = new MultivaluedMapImpl();
header.add("Origin", "https://issues.apache.org/jira/browse/STANBOL-616");
header.put("Access-Control-Request-Headers", Arrays.asList("Origin", "Content-Type", "Accept"));
header.add("Access-Control-Request-Method", "PUT");
HttpHeaders requestHeaders = new MockHttpHeaders(header);
ResponseBuilder builder = Response.ok("Test");
CorsHelper.enableCORS(context, builder, requestHeaders, OPTIONS, GET, POST, PUT);
Response response = builder.build();