@Test
public void getAccessTokenFromKernel() {

    stubFor(get(urlPathEqualTo("/api/admin/local-authority/123456789/accessToken"))
            .willReturn(ok("access-token")));
    LocalAuthority localAuthority = new LocalAuthority();
    ReflectionTestUtils.setField(localAuthority, "uuid", "uuid-local-authority-one-test");
    localAuthority.setSiren("123456789");
    Optional<String> accessToken = externalRestService.getAccessTokenFromKernel(localAuthority);
    WireMock.verify(getRequestedFor(urlPathEqualTo("/api/admin/local-authority/123456789/accessToken")));
    Assert.assertTrue(accessToken.isPresent());
}