}
protected static Mock strictMock(Class type, String name) {
return mock(type, name, new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
throw new VerificationException("Unexpected call to "
+ method.getName() + "[" +
Arrays.asList(args) + "]");
}
});
}