@Test
public void getAccessTokenForDataOwner() {

    LocalAuthority localAuthority = new LocalAuthority();
    ReflectionTestUtils.setField(localAuthority, "uuid", "uuid-local-authority-one-test");
    given(localAuthorityService.getBySiren("123456789")).willReturn(Optional.of(localAuthority));
    given(externalRestService.getAccessTokenFromKernel(any())).willReturn(Optional.of("access-token"));
    Optional<String> accessToken = dcImporterService.getAccessTokenForDataOwner();
    Assert.assertTrue(accessToken.isPresent());
}