### Question:
HttpOptions extends HttpUriRequestBase { public Set<String> getAllowedMethods(final HttpResponse response) { Args.notNull(response, "HTTP response"); final Iterator<HeaderElement> it = MessageSupport.iterate(response, "Allow"); final Set<String> methods = new HashSet<>(); while (it.hasNext()) { final HeaderElement element = it.next(); methods.add(element.getName()); } return methods; } HttpOptions(final URI uri);  HttpOptions(final String uri); @Override String getMethod(); Set<String> getAllowedMethods(final HttpResponse response); final static String METHOD_NAME; }### Answer:
@Test public void testMultipleAllows() { final BasicHttpResponse resp = new BasicHttpResponse(200, "test reason"); resp.addHeader("Allow", "POST"); resp.addHeader("Allow", "GET"); final HttpOptions opt = new HttpOptions("*"); final Set<String> methodsName = opt.getAllowedMethods(resp); Assert.assertTrue(methodsName.contains("POST")); Assert.assertTrue(methodsName.contains("GET")); }