verify( remoteObject ).destroy();
}
@Test
public void testCreatesGlobalActionsWithUI() {
ActionRenderer renderer = mock( ActionRenderer.class );
RemoteRendererFactory factory = mock( RemoteRendererFactory.class );
when( factory.createActionRenderer( any( UI.class ), any( UIRenderer.class ), any( ActionDescriptor.class ) ) ).thenReturn( renderer );
when( uiDescriptor.getRendererFactory() ).thenReturn( factory );
ActionDescriptor descriptor = mock( ActionDescriptor.class );
when( descriptor.getTitle() ).thenReturn( "foo" );