### Question:
KeycloakDeployment { public boolean isOAuthQueryParameterEnabled() { return !this.ignoreOAuthQueryParameter; } KeycloakDeployment(); boolean isConfigured(); String getResourceName(); String getRealm(); void setRealm(String realm); PublicKeyLocator getPublicKeyLocator(); void setPublicKeyLocator(PublicKeyLocator publicKeyLocator); String getAuthServerBaseUrl(); void setAuthServerBaseUrl(AdapterConfig config); RelativeUrlsUsed getRelativeUrls(); String getRealmInfoUrl(); KeycloakUriBuilder getAuthUrl(); String getTokenUrl(); KeycloakUriBuilder getLogoutUrl(); String getAccountUrl(); String getRegisterNodeUrl(); String getUnregisterNodeUrl(); String getJwksUrl(); void setResourceName(String resourceName); boolean isBearerOnly(); void setBearerOnly(boolean bearerOnly); boolean isAutodetectBearerOnly(); void setAutodetectBearerOnly(boolean autodetectBearerOnly); boolean isEnableBasicAuth(); void setEnableBasicAuth(boolean enableBasicAuth); boolean isPublicClient(); void setPublicClient(boolean publicClient); Map<String, Object> getResourceCredentials(); void setResourceCredentials(Map<String, Object> resourceCredentials); ClientCredentialsProvider getClientAuthenticator(); void setClientAuthenticator(ClientCredentialsProvider clientAuthenticator); HttpClient getClient(); void setClient(final HttpClient client); String getScope(); void setScope(String scope); SslRequired getSslRequired(); void setSslRequired(SslRequired sslRequired); boolean isSSLEnabled(); int getConfidentialPort(); void setConfidentialPort(int confidentialPort); TokenStore getTokenStore(); void setTokenStore(TokenStore tokenStore); String getAdapterStateCookiePath(); void setAdapterStateCookiePath(String adapterStateCookiePath); String getStateCookieName(); void setStateCookieName(String stateCookieName); boolean isUseResourceRoleMappings(); void setUseResourceRoleMappings(boolean useResourceRoleMappings); boolean isCors(); void setCors(boolean cors); int getCorsMaxAge(); void setCorsMaxAge(int corsMaxAge); String getCorsAllowedHeaders(); void setCorsAllowedHeaders(String corsAllowedHeaders); String getCorsAllowedMethods(); void setCorsAllowedMethods(String corsAllowedMethods); String getCorsExposedHeaders(); void setCorsExposedHeaders(String corsExposedHeaders); boolean isExposeToken(); void setExposeToken(boolean exposeToken); int getNotBefore(); void setNotBefore(int notBefore); void updateNotBefore(int notBefore); boolean isAlwaysRefreshToken(); void setAlwaysRefreshToken(boolean alwaysRefreshToken); boolean isRegisterNodeAtStartup(); void setRegisterNodeAtStartup(boolean registerNodeAtStartup); int getRegisterNodePeriod(); void setRegisterNodePeriod(int registerNodePeriod); String getPrincipalAttribute(); void setPrincipalAttribute(String principalAttribute); boolean isTurnOffChangeSessionIdOnLogin(); void setTurnOffChangeSessionIdOnLogin(boolean turnOffChangeSessionIdOnLogin); int getTokenMinimumTimeToLive(); void setTokenMinimumTimeToLive(final int tokenMinimumTimeToLive); int getMinTimeBetweenJwksRequests(); void setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests); int getPublicKeyCacheTtl(); void setPublicKeyCacheTtl(int publicKeyCacheTtl); void setPolicyEnforcer(Callable<PolicyEnforcer> policyEnforcer); PolicyEnforcer getPolicyEnforcer(); boolean isPkce(); void setPkce(boolean pkce); void setIgnoreOAuthQueryParameter(boolean ignoreOAuthQueryParameter); boolean isOAuthQueryParameterEnabled(); Map<String, String> getRedirectRewriteRules(); void setRewriteRedirectRules(Map<String, String> redirectRewriteRules); boolean isDelegateBearerErrorResponseSending(); void setDelegateBearerErrorResponseSending(boolean delegateBearerErrorResponseSending); boolean isVerifyTokenAudience(); void setVerifyTokenAudience(boolean verifyTokenAudience); void setClient(Callable<HttpClient> callable);  }### Answer:
@Test public void shouldEnableOAuthQueryParamWhenIgnoreNotSet() { KeycloakDeployment keycloakDeployment = new KeycloakDeploymentMock(); assertTrue(keycloakDeployment.isOAuthQueryParameterEnabled()); }