@Test
public void testWithLogLevel() {

  UnauthorizedException ex = new UnauthorizedException("");
  assertThat(ex.getLogLevel()).isEqualTo(Level.INFO);
  assertThat(ServiceException.withLogLevel(ex, Level.WARNING).getLogLevel())
      .isEqualTo(Level.WARNING);
}