if (endpointUser != null) { EndpointProfile endpoint = endpointProfileDao.findByAccessToken(endpointAccessToken); LOG.trace("[{}] Found endpoint profile by with access token {} ", endpointAccessToken, endpoint);
@Test public void testFindByAccessToken() throws Exception { EndpointProfileDto expected = generateEndpointProfile(null, null, null, null); EndpointProfile found = endpointProfileDao.findByAccessToken(expected.getAccessToken()); Assert.assertEquals(expected, found.toDto()); }