SyntaxCheckerTest: use ArgumentCaptor

Great little tool, that!

Thanks to Bombe on Freenode/##java.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>