def METHOD_NAME(self):
    """Test the detect_jboss_eap method."""
    source = {
        "server_id": self.server_id,
        "source_name": "source1",
        "source_type": "network",
    }
    facts = {
        "eap_home_ls": {"opt/eap6/": ["jboss-modules.jar"]},
        "jboss_eap_jar_ver": [
            {"version": "1.3.6.Final-redhat-1", "date": "2018-01-18"}
        ],
    }
    product = detect_jboss_eap(source, facts)
    expected = {
        "name": "JBoss EAP",
        "presence": "present",
        "version": ["6.4.0"],
        "metadata": {
            "server_id": self.server_id,
            "source_name": "source1",
            "source_type": "network",
            "raw_fact_key": "eap_home_ls/jboss_eap_jar_ver",
        },
    }
    self.assertEqual(product, expected)