@Test
public void unauthorisedCidr() throws Exception {

  paverAuthorities.add("AUTHORIZED");
  cidrBlocks = "0.0.0.0/0";
  PaverAuthorisation underTest = new PaverAuthorisation(paverAuthorities, cidrBlocks, cidrBlockAuthorisation);
  doReturn(singletonList(new SimpleGrantedAuthority("FOO"))).when(authentication).getAuthorities();
  doReturn(details).when(authentication).getDetails();
  String address = "0.0.0.0";
  doReturn(address).when(details).getRemoteAddress();
  doReturn(false).when(cidrBlockAuthorisation).isAuthorised(singletonList(cidrBlocks), address);
  boolean result = underTest.isAuthorised(authentication);
  assertThat(result, is(false));
}