You are testing mu, you are not testing x bar. If you knew the value of mu, then there would be nothing to test.
All hypothesis testing is done under the assumption

I can't emphasize this enough. The value for all population parameters in the test statistics come from the null hypothesis. This is true not only for means, but all of the testing we're going to be doing.
If the population standard deviation, sigma, is known, then the population mean has a normal distribution, and you will be using the zscore formula for sample means. The test statistic is the standard formula you've seen before.
The critical value is obtained from the normal table, or the bottom line from the ttable.
If the population standard deviation, sigma, is unknown, then the population mean has a student's t distribution, and you will be using the tscore formula for sample means. The test statistic is very similar to that for the zscore, except that sigma has been replaced by s and z has been replaced by t.
The critical value is obtained from the ttable. The degrees of freedom for this test is n1.
If you're performing a ttest where you found the statistics on the calculator (as opposed to being given them in the problem), then use the VARS key to pull up the statistics in the calculation of the test statistic. This will save you data entry and avoid round off errors.
Notice the general pattern of these test statistics is (observed  expected) / standard deviation.