OpenConextOauth1TokenServices extends RandomValueProviderTokenServices implements InitializingBean { @Override protected OAuthProviderTokenImpl readToken(String authentication) { OAuthProviderTokenImpl token; try { token = jdbcTemplate.queryForObject(selectTokenSql, new OAuthProviderTokenRowMapper(), authentication); } catch (EmptyResultDataAccessException e) { if (LOG.isDebugEnabled()) { LOG.debug("Failed to find token for input '{}'", authentication); } return null; } return token; }  @Override void afterPropertiesSet(); void setDataSource(DataSource dataSource);  }
@Test public void readTokenNullInput() { assertNull(s.readToken(null)); }
@Test public void readTokenEmptyInput() { assertNull(s.readToken("")); }