### Question:
AuthorizationServer { protected boolean isValidClientCredentials(String clientId, String clientSecret) { ClientCredentials creds = db.findClientCredentials(clientId); if (creds != null && creds.getSecret().equals(clientSecret)) { return true; } return false; }  ClientCredentials issueClientCredentials(HttpRequest req); String issueAuthorizationCode(HttpRequest req); AccessToken issueAccessToken(HttpRequest req); static String [] getBasicAuthorizationClientCredentials(HttpRequest req); AccessToken isValidToken(String token); ApplicationInfo getApplicationInfo(String clientId); boolean revokeUserAccessTokens(HttpRequest req); boolean revokeToken(HttpRequest req); boolean updateClientApp(HttpRequest req, String clientId);  }### Answer:
@Test public void when_client_app_status_is_inactive_but_status_not_checked_return_validClientCredentials_true() throws Exception { String clientId = "203598599234220"; String clientSecret = "f754cb0cd78c4c36fa3c1c0325ef72bb4a011373"; ClientCredentials client = mock(ClientCredentials.class); willReturn(ClientCredentials.INACTIVE_STATUS).given(client).getStatus(); willReturn(clientSecret).given(client).getSecret(); willReturn(client).given(authServer.db).findClientCredentials(clientId); boolean valid = authServer.isValidClientCredentials(clientId, clientSecret); assertTrue(valid); }