> }
> - }
> - assertTrue(serviceKeyFound, "Expected but could not find ServiceKey
> amongst " + possibleServiceKeys.size() + " found");
The `find` method will fail if it does not find any result. Use instead:
```java
assertTrue(any(possibleServiceKeys, new Predicate<ServiceKey>() {
@Override
public boolean apply(ServiceKey input) {
return input.key().equals(serviceKey);
}
}, "Expected but could not find ServiceKey amongst " +
possibleServiceKeys.size() + " found");
```
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/166/files#r28494058