// Create an action that will check that the matcher context and
// styles is being passed through correctly.
final MethodAction styleAction = new MethodAction() {
public Object perform(MethodActionEvent event)
throws Throwable {
StandardStylerContext context = (StandardStylerContext) event.getArgument(
StandardStylerContext.class);
assertSame("Styler context", context, stylerContextMock);
return StylerResult.STYLED;
}