this.expectedException = initExpectedException();
}
protected Iterable<MethodReference> collectDependencies() {
Collection<MethodReference> all = new ArrayList<MethodReference>();
Given a = method.getAnnotation(Given.class);
if (a == null) return all;
try {
for (MethodLocator each: MethodLocator.parseAll(a.value()))
all.add(each.resolve(method.jclass));
} catch (InvalidDeclarationError ex) {
errors.add(Kind.INVALID_DEPENDS_DECLARATION, ex);
} catch (SecurityException ex) {
errors.add(Kind.PROVIDER_NOT_FOUND, ex);