AuthenticatorState extends AbstractAuthzEntity { @Override @Transient @JsonIgnore public User getOwner() { if (authenticator != null) { return authenticator.getOwner(); } return null; }  Authenticator getAuthenticator(); void setAuthenticator(final Authenticator authenticator); URI getClientRedirect(); void setClientRedirect(final URI clientRedirect); SortedMap<String, ApplicationScope> getClientScopes(); void setClientScopes(
            final SortedMap<String, ApplicationScope> clientScopes); String getClientState(); @Override @Transient @JsonIgnore User getOwner(); void setClientState(final String clientState);  }
@Test public void testGetOwner() { AuthenticatorState state = new AuthenticatorState(); Authenticator spy = spy(new Authenticator()); assertNull(state.getOwner()); state.setAuthenticator(spy); state.getOwner(); Mockito.verify(spy).getOwner(); }