### Question:
CORSFilter implements Handler<RoutingContext> { public static boolean isConfiguredWithWildcard(Optional<List<String>> optionalList) { if (optionalList == null || !optionalList.isPresent()) { return true; } List<String> list = optionalList.get(); return list.isEmpty() || (list.size() == 1 && "*".equals(list.get(0))); } CORSFilter(CORSConfig corsConfig); static boolean isConfiguredWithWildcard(Optional<List<String>> optionalList); @Override void handle(RoutingContext event);  }### Answer:
@Test public void isConfiguredWithWildcardTest() { Assertions.assertTrue(isConfiguredWithWildcard(Optional.empty())); Assertions.assertTrue(isConfiguredWithWildcard(Optional.of(Collections.EMPTY_LIST))); Assertions.assertTrue(isConfiguredWithWildcard(Optional.of(Collections.singletonList("*")))); Assertions.assertFalse(isConfiguredWithWildcard(Optional.of(Arrays.asList("PUT", "GET", "POST")))); Assertions.assertFalse(isConfiguredWithWildcard(Optional.of(Arrays.asList("http: Assertions.assertFalse(isConfiguredWithWildcard(Optional.of(Collections.singletonList("http: }