getMockLifecycle

fun getMockLifecycle(state: Lifecycle.State = Lifecycle.State.CREATED): Lifecycle

Convenience method to mock a lifecycle with a given state.