public void testLoadingClientIdWithSingleDetailsInCustomTable() {
jdbcTemplate.update(CUSTOM_INSERT_SQL, "clientIdWithSingleDetails",
"mySecret", "myResource", "myScope", "myAuthorizedGrantType",
"myRedirectUri", "myAuthority");
JdbcClientDetailsService customService = new JdbcClientDetailsService(
db);
customService
.setSelectClientDetailsSql("select appId, appSecret, resourceIds, scope, "
+ "grantTypes, redirectUrl, authorities, access_token_validity, refresh_token_validity, additionalInformation, autoApproveScopes from ClientDetails where appId = ?");
ClientDetails clientDetails = customService
.loadClientByClientId("clientIdWithSingleDetails");
assertEquals("clientIdWithSingleDetails", clientDetails.getClientId());
assertTrue(clientDetails.isSecretRequired());
assertEquals("mySecret", clientDetails.getClientSecret());