}
@Test
public void testUpdateCreatesNewActionsCallsActionCreateUi() {
List<ActionDescriptor> actions = new ArrayList<ActionDescriptor>();
actions.add( new ActionDescriptor( "actionFoo", new TestAction() ) );
when( descriptor.getActions() ).thenReturn( actions );
webPage.createActions( WebRendererFactory.getInstance(), shell );
actions.add( new ActionDescriptor( "actionFoo2", new TestAction() ) );
webPage.update( descriptor, WebRendererFactory.getInstance(), shell );
List<ActionRenderer> renderers = webPage.getActionRenderers();
assertEquals( 2, renderers.size() );