Note that you may use alternative syntax and write something like:
```
testRuleOnCCode(new UnusedMethodParameterRule(), "int aMethod(int a, int b);\n"
    "int aMethod(" VIOLATION_START "int " VIOLATION_END "a, int __attribute__((unused)) b) { return 1; }",
    {"The parameter 'a' is unused."});
```