public void testRenderWhenSupportsSpan() throws RendererException {
// Create test objects.
StylesMock styles = new StylesMock("styles", expectations);
StylesMock stylesCopy = new StylesMock("stylesCopy", expectations);
MutablePropertyValuesMock propertyValues =
new MutablePropertyValuesMock("propertyValues", expectations);
final ExpectedValue attributes =
mockFactory.expectsInstanceOf(SpanAttributes.class);
// Set expectations.
item.expects.getMenu().returns(menu);