hCG can be detected through blood tests or urine tests. In the context of cancer, elevated hCG levels can indicate the presence of hCG-producing tumors. For instance, a man presenting with symptoms of testicular cancer may undergo an hCG test as part of a diagnostic workup. Elevated hCG levels in this context would prompt further investigation and imaging studies to confirm the diagnosis.