### Question:
RoleDao { public static List<GrantedAuthority> createDefaultAuthorities() { Role r = createRoleWithReadPrivilage("ROLE_USER"); return singletonList(r); }  @SuppressWarnings("unchecked") @PostConstruct void init(); List<GrantedAuthority> getRolesForUser(String user); Map<String, List<String>> getSimpleRolesMap(); @VisibleForTesting void setAuthPropsConfig(AuthPropsConfig authPropsConfig); static List<GrantedAuthority> createDefaultAuthorities();  }### Answer:
@Test public void testCreateDefaultAuthorities() { List<GrantedAuthority> authorityList = RoleDao.createDefaultAuthorities(); Assert.assertEquals("ROLE_USER", authorityList.get(0).getAuthority()); }