@Test
public void singleMethod() {

    CreatedStateListener obj = mock(CreatedStateListener.class);
    ReflectiveGenericLifecycleObserver observer = new ReflectiveGenericLifecycleObserver(obj);
    when(mLifecycle.getCurrentState()).thenReturn(CREATED);
    observer.onStateChanged(mOwner, ON_CREATE);
    verify(obj).onCreated();
    verify(obj).onCreated(mOwner);
}