From the documentation, my understanding is that expectLastCall() is to be used for void methods, not expect(), accordingly I get a complaint in Eclipse when doing so.
Capture<String> capturedArgument = new Capture<>();
expect(testObject.voidMethodName(capture(capturedArgument)));
This How to expect void method call with any argument using EasyMock doesn't work.