@Test
public void addGenericAndObserve() {

    GenericLifecycleObserver generic = mock(GenericLifecycleObserver.class);
    mRegistry.addObserver(generic);
    dispatchEvent(ON_CREATE);
    verify(generic).onStateChanged(mLifecycleOwner, ON_CREATE);
    reset(generic);
    dispatchEvent(ON_CREATE);
    verify(generic, never()).onStateChanged(mLifecycleOwner, ON_CREATE);
}