private void testMatch(RequestMethodsRequestCondition condition, RequestMethod method)
     throws Exception {
   ServerWebExchange exchange = createExchange(method.name());
   RequestMethodsRequestCondition actual = condition.getMatchingCondition(exchange);
   assertNotNull(actual);
   assertEquals(Collections.singleton(method), actual.getContent());
 }
 @Test
 public void getMatchingConditionWithEmptyConditions() throws Exception {
   RequestMethodsRequestCondition condition = new RequestMethodsRequestCondition();
   for (RequestMethod method : RequestMethod.values()) {
     if (!OPTIONS.equals(method)) {
       ServerWebExchange exchange = createExchange(method.name());
       assertNotNull(condition.getMatchingCondition(exchange));
     }
   }
   testNoMatch(condition, OPTIONS);
 }
 private void testNoMatch(RequestMethodsRequestCondition condition, RequestMethod method)
     throws Exception {
   ServerWebExchange exchange = createExchange(method.name());
   assertNull(condition.getMatchingCondition(exchange));
 }