Johnsonburg man takes plea bargain in rape case