mockFactory.expectsInstanceOf(Attributes.class))
.does(new MethodAction() {
public Object perform(MethodActionEvent event)
throws Throwable {
Attributes attributes = (Attributes)
event.getArgument(Attributes.class);
assertEquals("id", STRING_IDENTIFIER,
attributes.getAttributeValue(
null, FormatStylingConstants.FORMAT_IDENTIFIER));
assertEquals("class", STYLE_CLASS,
attributes.getAttributeValue(
null, FormatStylingConstants.FORMAT_CLASS));
return null;
}
});