@Test
public void twoObserversChangingState() {

    final TestObserver observer1 = spy(new TestObserver() {
        @Override
        void onCreate() {
            dispatchEvent(ON_START);
        }
    });
    final TestObserver observer2 = mock(TestObserver.class);
    mRegistry.addObserver(observer1);
    mRegistry.addObserver(observer2);
    dispatchEvent(ON_CREATE);
    verify(observer1, times(1)).onCreate();
    verify(observer2, times(1)).onCreate();
    verify(observer1, times(1)).onStart();
    verify(observer2, times(1)).onStart();
}