How can I pass capabilities with Appium Java TestNG?

How should I pass capabilities with Appium Java TestNG?