def METHOD_NAME(self, param_instance):
    param_instance.linear_solver_class = DirectSolver
    param_instance.linear_solver_options = {}  # defaults not valid for DirectSolver
    param_instance.setup()
    problem = param_instance.problem
    model = problem.model
    expected_values = model.expected_values
    if expected_values:
        actual = {key: problem[key] for key in expected_values}
        assert_near_equal(actual, expected_values, 1e-8)
    expected_totals = model.expected_totals
    if expected_totals:
        # Forward Derivatives Check
        totals = param_instance.compute_totals('fwd')
        assert_near_equal(totals, expected_totals, 1e-8)
        # Reverse Derivatives Check
        totals = param_instance.compute_totals('rev')
        assert_near_equal(totals, expected_totals, 1e-8)