@Test
public void getAccessToken() throws Exception {

    TokenResponse tokenResponse = new TokenResponse();
    tokenResponse.setAccessToken("test-access-token");
    tokenResponse.setTokenType("Bearer");
    tokenResponse.setIdToken("test-id-token");
    given(localAuthorityService.getAccessTokenFromKernel("uuid-test-one")).willReturn(Optional.of(tokenResponse));
    ResultActions resultActions = mockMvc.perform(get("/api/admin/local-authority/uuid-test-one/accessToken"));
    resultActions
            .andExpect(matchAll(
                    status().isOk(),
                    jsonPath("$").value("test-access-token")
            ))
            .andDo(print());
}