@Test
public void testPrivateObserverMethods() {

    class ObserverWithPrivateMethod implements LifecycleObserver {
        boolean mCalled = false;
        @OnLifecycleEvent(ON_START)
        private void started() {
            mCalled = true;
        }
    }
    ObserverWithPrivateMethod obj = mock(ObserverWithPrivateMethod.class);
    ReflectiveGenericLifecycleObserver observer = new ReflectiveGenericLifecycleObserver(obj);
    observer.onStateChanged(mOwner, ON_START);
    assertThat(obj.mCalled, is(true));
}