@Test
public void testFromServletConfig_invalidRestrictedThrows() throws ServletException {

  try {
    fromServletConfig(null, "yes", null, null, null, null, null);
    fail("Expected IllegalArgumentException");
  } catch (IllegalArgumentException expected) {
    // expected
  }
}