/*
  * 7 covered goals:
  * 1 org.jsecurity.realm.SimpleAccountRealm.accountExists(Ljava/lang/String;)Z: I5 Branch 2 IFNULL L85 - true
  * 2 org.jsecurity.realm.SimpleAccountRealm.afterRoleCacheSet()V: root-Branch
  * 3 org.jsecurity.realm.SimpleAccountRealm.afterAuthorizationCacheSet()V: root-Branch
  * 4 org.jsecurity.realm.SimpleAccountRealm.<init>()V: root-Branch
  * 5 org.jsecurity.realm.SimpleAccountRealm.getUser(Ljava/lang/String;)Lorg/jsecurity/authc/SimpleAccount;: root-Branch
  * 6 org.jsecurity.realm.SimpleAccountRealm.accountAndRoleCachesCreated()V: root-Branch
  * 7 org.jsecurity.realm.SimpleAccountRealm.initRoleCache()V: I4 Branch 1 IFNONNULL L72 - true
  */
 @Test
 public void test0() throws Throwable {
   SimpleAccountRealm simpleAccountRealm0 = new SimpleAccountRealm();
   HashtableCacheManager hashtableCacheManager0 = new HashtableCacheManager();
   simpleAccountRealm0.setCacheManager((CacheManager) hashtableCacheManager0);
   boolean boolean0 = simpleAccountRealm0.accountExists("pVk`-kKrk");
   assertEquals("org.jsecurity.realm.SimpleAccountRealm_0", simpleAccountRealm0.getName());
   assertEquals(false, boolean0);
 }
 /*
  * 2 covered goals:
  * 1 org.jsecurity.realm.SimpleAccountRealm.roleExists(Ljava/lang/String;)Z: I5 Branch 3 IFNULL L108 - true
  * 2 org.jsecurity.realm.SimpleAccountRealm.getRole(Ljava/lang/String;)Lorg/jsecurity/authz/SimpleRole;: root-Branch
  */
 @Test
 public void test4() throws Throwable {
   SimpleAccountRealm simpleAccountRealm0 = new SimpleAccountRealm();
   HashtableCache hashtableCache0 = new HashtableCache("U>dPoO#:");
   simpleAccountRealm0.setAuthorizationCache((Cache) hashtableCache0);
   boolean boolean0 = simpleAccountRealm0.roleExists("U>dPoO#:");
   assertEquals("org.jsecurity.realm.SimpleAccountRealm_55", simpleAccountRealm0.getName());
   assertEquals(false, boolean0);
 }
 /*
  * 3 covered goals:
  * 1 org.jsecurity.realm.SimpleAccountRealm.doGetAuthorizationInfo(Lorg/jsecurity/subject/PrincipalCollection;)Lorg/jsecurity/authz/AuthorizationInfo;: root-Branch
  * 2 org.jsecurity.realm.SimpleAccountRealm.<init>(Ljava/lang/String;)V: root-Branch
  * 3 org.jsecurity.realm.SimpleAccountRealm.getAuthorizationCacheKey(Lorg/jsecurity/subject/PrincipalCollection;)Ljava/lang/Object;: root-Branch
  */
 @Test
 public void test1() throws Throwable {
   SimpleAccountRealm simpleAccountRealm0 = new SimpleAccountRealm("UI-l:Vdk&");
   SimplePrincipalCollection simplePrincipalCollection0 = new SimplePrincipalCollection();
   // Undeclared exception!
   try {
     simpleAccountRealm0.hasAllRoles(
         (PrincipalCollection) simplePrincipalCollection0, (Collection<String>) null);
     fail("Expecting exception: NoSuchElementException");
   } catch (NoSuchElementException e) {
   }
 }
 /*
  * 1 covered goal:
  * 1 org.jsecurity.realm.SimpleAccountRealm.initRoleCache()V: I4 Branch 1 IFNONNULL L72 - false
  */
 @Test
 public void test2() throws Throwable {
   SimpleAccountRealm simpleAccountRealm0 = new SimpleAccountRealm();
   simpleAccountRealm0.initRoleCache();
   assertEquals("org.jsecurity.realm.SimpleAccountRealm_21", simpleAccountRealm0.getName());
 }
 /*
  * 6 covered goals:
  * 1 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I8 Branch 5 IFLE L120 - true
  * 2 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I39 Branch 6 IF_ICMPGE L126 - true
  * 3 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I39 Branch 6 IF_ICMPGE L126 - false
  * 4 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I53 Branch 7 IFLE L128 - true
  * 5 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I53 Branch 7 IFLE L128 - false
  * 6 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I3 Branch 4 IFNULL L120 - false
  */
 @Test
 public void test8() throws Throwable {
   Set<String> set0 = SimpleAccountRealm.toSet("UI-l:Vck&", "");
   assertNotNull(set0);
   assertEquals(9, set0.size());
 }
 /*
  * 2 covered goals:
  * 1 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I3 Branch 4 IFNULL L120 - false
  * 2 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I8 Branch 5 IFLE L120 - false
  */
 @Test
 public void test7() throws Throwable {
   Set<String> set0 = SimpleAccountRealm.toSet("", "");
   assertNull(set0);
 }
 /*
  * 1 covered goal:
  * 1 org.jsecurity.realm.SimpleAccountRealm.toSet(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Set;: I3 Branch 4 IFNULL L120 - true
  */
 @Test
 public void test6() throws Throwable {
   Set<String> set0 = SimpleAccountRealm.toSet((String) null, (String) null);
   assertNull(set0);
 }