@Test
public void testUpdateTemplateRoleWithMembersWithParams() {

    Role role = new Role().setName("_domain_:role._service___api_readers");
    List<RoleMember> members = new ArrayList<>();
    members.add(new RoleMember().setMemberName("user.user1"));
    members.add(new RoleMember().setMemberName("user._service_"));
    members.add(new RoleMember().setMemberName("_domain_.user3"));
    role.setRoleMembers(members);
    
    List<TemplateParam> params = new ArrayList<>();
    params.add(new TemplateParam().setName("service").setValue("storage"));
    params.add(new TemplateParam().setName("api").setValue("java"));
    params.add(new TemplateParam().setName("name").setValue("notfound"));
    Role newRole = zms.dbService.updateTemplateRole(role, "athenz", params);
    assertEquals("athenz:role.storage_javareaders", newRole.getName());
    List<RoleMember> newMembers = newRole.getRoleMembers();
    assertEquals(3, newMembers.size());
    
    List<String> checkList = new ArrayList<>();
    checkList.add("user.user1");
    checkList.add("user.storage");
    checkList.add("athenz.user3");
    checkRoleMember(checkList, newMembers);
}