private static void hasRole() throws Exception {
        UserDAO ud = new UserDAO();
        RoleDAO rd = new RoleDAO();
        Role role = (Role) rd.findById(2);
        User user = (User) ud.findById(2);
        boolean itHasRole = ud.hasRole(role, user);
        if (itHasRole == true) {
            System.out.println("Yep! :)");
        } else {
            System.out.println("Nop! :(");
        }
    }