The typical way to test interaction with external APIs is to mock them.
val stytch = mockk<StytchClient>
every { stytch.users } returns mockk {
every { create(any()) } returns mockk()
}
However, because of the @JvmField annotations on StytchClient.users and the other fields, this becomes impossible (MockK, Mockito, etc. can only mock getters, not fields themselves).
Is there a good reason for those annotations? If not, let's remove them?