rest-driver/rest-driver — Issue #109: anyTimes() expectation first causes others to not be verified
Author: neilprosser
Created: 2012-03-09 15:14:55+00:00
State: open
Labels: Bug

```java
driver.addExpectation(onRequestTo("/anytimes"), giveEmptyResponse()).anyTimes();
driver.addExpectation(onRequestTo("/one"), giveEmptyResponse());
```

... is treated differently from...

```java
driver.addExpectation(onRequestTo("/one"), giveEmptyResponse());
driver.addExpectation(onRequestTo("/anytimes"), giveEmptyResponse()).anyTimes();
```

The former verifies successfully when no requests are made to the client driver, the second fails (as expected).