}
@Test
public void passesTheWebMethod() throws SecurityException, NoSuchMethodException {
HttpMethod delete = HttpMethod.DELETE;
Route route = mock(Route.class);
when(route.canHandle("/clients/add")).thenReturn(true);
when(route.allowedMethods()).thenReturn(EnumSet.of(delete));
when(route.resourceMethod(request, "/clients/add")).thenReturn(method);