def METHOD_NAME(show_plots, inertialHeading, eulerLoc):
    testFailCount = 0  # zero unit test result counter
    testMessages = []  # create empty array to store test log messages
    # Assign task and process names
    unitTaskName = "unitTask"  # arbitrary name (don't change)
    unitProcessName = "unitProcess"  # arbitrary name (don't change)
    # Create the sim module, process and task
    TotalSim = SimulationBaseClass.SimBaseClass()
    UnitTestProc = TotalSim.CreateNewProcess(unitProcessName)
    UnitTestProc.addTask(TotalSim.CreateNewTask(unitTaskName, mc.sec2nano(1.0)))
    # Create the state message and populate it
    stateMessage = messaging.SCStatesMsgPayload()
    stateMessage.sigma_BN = rbk.euler3212MRP(eulerLoc)
    scMsg = messaging.SCStatesMsg().write(stateMessage)
    # Initialize the bac module
    BACObject = boreAngCalc.BoreAngCalc()
    BACObject.ModelTag = "solarArrayBoresight"
    boreVec_B = [1.0, 0.0, 0.0]
    BACObject.boreVec_B = boreVec_B  # boresight in body frame
    BACObject.scStateInMsg.subscribeTo(scMsg)
    BACObject.inertialHeadingVec_N = inertialHeading
    TotalSim.AddModelToTask(unitTaskName, BACObject)
    # Configure the recorder
    dataLog = BACObject.angOutMsg.recorder()
    TotalSim.AddModelToTask(unitTaskName, dataLog)
    # Execute simulation
    TotalSim.InitializeSimulation()
    TotalSim.TotalSim.SingleStepProcesses()
    # Configure the tests
    # Compute the inertial heading in B frame
    dcm_BN = rbk.MRP2C(stateMessage.sigma_BN)
    inertialHeading_B = dcm_BN.dot(np.array(inertialHeading))
    # Compute the miss angle
    missAngle = math.acos(np.array(boreVec_B).dot(inertialHeading_B))
    # Extract the miss angle from data
    simMissAngle = dataLog.missAngle[0]
    # Compare the results
    tol = 1E-10
    if not unitTestSupport.isDoubleEqual(missAngle, simMissAngle, tol):
        testFailCount += 1
        testMessages.append("FAILED: Calculating the miss angle of the boresight failed \n")
    # print out success message if no error were found
    if testFailCount == 0:
        print("PASSED")
    else:
        print(testMessages)
    return [testFailCount, ''.join(testMessages)]