@Test
public void authorised() throws Exception {

  paverAuthorities.add("AUTHORIZED");
  doReturn(singletonList(new SimpleGrantedAuthority("AUTHORIZED"))).when(authentication).getAuthorities();
  boolean result = underTest.isAuthorised(authentication);
  assertThat(result, is(true));
}