Client extends AbstractAuthzEntity { @Transient @JsonIgnore public Boolean isPublic() { return !isPrivate(); }  Application getApplication(); void setApplication(final Application application); String getName(); void setName(final String name); String getClientSecret(); void setClientSecret(final String clientSecret); List<ClientReferrer> getReferrers(); void setReferrers(final List<ClientReferrer> referrers); List<ClientRedirect> getRedirects(); void setRedirects(final List<ClientRedirect> redirects); List<Authenticator> getAuthenticators(); void setAuthenticators(final List<Authenticator> authenticators); List<OAuthToken> getTokens(); void setTokens(final List<OAuthToken> tokens); ClientType getType(); void setType(final ClientType type); Map<String, String> getConfiguration(); void setConfiguration(final Map<String, String> configuration); @JsonIgnore Integer getAuthorizationCodeExpiresIn(); @JsonIgnore Integer getAccessTokenExpireIn(); @JsonIgnore Integer getRefreshTokenExpireIn(); @Override @Transient @JsonIgnore User getOwner(); @Transient @JsonIgnore Boolean isPrivate(); @Transient @JsonIgnore Boolean isPublic();  }
@Test public void testIsPublic() { Client c = new Client(); assertTrue(c.isPublic()); c.setClientSecret("new secret"); assertFalse(c.isPublic()); }