### Question:
ComponentScriptService implements ScriptService { public ComponentManager getRootComponentManager() { return getComponentManager(null); }  @Deprecated ComponentManager getComponentManager(); ComponentManager getContextComponentManager(); ComponentManager getRootComponentManager(); ComponentManager getComponentManager(String namespace); T getInstance(Type roleType); T getInstance(Type roleType, String roleHint); Exception getLastError();  }### Answer:
@Test public void getRootComponentManagerWhenNoProgrammingRights() throws Exception { when(this.dab.hasProgrammingRights()).thenReturn(false); assertNull(this.mocker.getComponentUnderTest().getRootComponentManager()); }
@Test public void getRootComponentManagerWhenProgrammingRights() throws Exception { when(this.dab.hasProgrammingRights()).thenReturn(true); assertSame(this.rootComponentManager, this.mocker.getComponentUnderTest().getRootComponentManager()); }