@Test
public void authorised() throws Exception {

  onramp.setAuthorities(singletonList("AUTHORIZED"));
  doReturn(true).when(authentication).isAuthenticated();
  doReturn(singletonList(new SimpleGrantedAuthority("AUTHORIZED"))).when(authentication).getAuthorities();
  boolean result = underTest.isAuthorised(authentication, ROAD_NAME);
  assertThat(result, is(true));
  verify(metrics).increment("road1", AUTHENTICATED, AUTHORISED);
}