I am having nightmares with the syntax for this and easymock:
public void foo(Class> clazz); EasyMock.expects(object.foo(EasyMock.isA(???)));
I think the following will also work as an expect statement if you don't want to use a Capture:
EasyMock.expects(object.foo(EasyMock.isA(String.class.getClass())));