@Test
public void testSetAuthLevelIfSpecified() throws Exception {

  for (AuthLevel authLevel : AuthLevel.values()) {
    if (authLevel == AuthLevel.UNSPECIFIED) { // next test.
      continue;
    }
    annotationConfig.setAuthLevelIfSpecified(authLevel);
    assertEquals(authLevel, config.getAuthLevel());
  }
}