@Test
public void constructorWithNotifierRoot() {
Notifier notifier = mock(Notifier.class);
EList adapterList = mock(EList.class);
when(notifier.eAdapters()).thenReturn(adapterList);
when(adapterList.add(any())).then(new Answer() {
@Override
public Object answer(InvocationOnMock invocation) throws Throwable {
adapter = (Adapter) invocation.getArguments()[0];