Yeah it could. I've updated the
test with an example that uses private overloaded methods and captor. The verification step looks like this:
verifyPrivate(demo).invoke(method(PrivateFinalOverload.class, "say", String.class, String.class)).withArguments(anyString(), captor.capture());
However when running this example ran into a bug in PowerMock (had to do with argument concatenation). I've now fixed this and uploaded a new SNAPSHOT to sonatype. So please try it out by depending on version 1.5.7-SNAPSHOT after having added the following repo:
<repositories>
<repository>
<id>sonatype</id>
<snapshots />
</repository>
</repositories>
Tell me if it works for you or not.
/Johan