How do you pass two parameters in TestNG?

How do you pass two parameters in TestNG?

The Syntax to pass parameters to a test method in testNG is

@Test @Parameters ({“param1”, “param2”}) public void CheckLogin(String userName, String password) { //Code }

Here the paramater name "param1"and “param2” should match the parameter name in testSuite xml file