@Test(expected = IllegalArgumentException.class)
public void testAddNewRuleWithNoRealm2() {

  AuthToLocalBuilder builder = new AuthToLocalBuilder("EXAMPLE.COM", Collections.<String>emptyList(), false);
  builder.addRule("someUser/someHost", "hdfs");
}