// Create the related test/mock objects.
TestRendererContext context =
new TestRendererContext(assetResolverMock);
TestDeprecatedOutputLocator outputLocator
= new TestDeprecatedOutputLocator();
DOMOutputBuffer buffer = context.getBuffer();
TestDeprecatedImageOutput imageOutput
= (TestDeprecatedImageOutput) outputLocator.getImageOutput();
// Create the renderer to test, using the test objects created above.
OpenwaveMenuItemRendererFactory rendererFactory =
new OpenwaveMenuItemRendererFactory(context, outputLocator);
final StylePropertyResolver stylePropertyResolver =