import java.awt.*;

/**
 * This testcase checks the getSystemTray method of the SystemTray. Checks if
 * a proper instance is returned in supported platforms and a proper exception
 * is thrown in unsupported platforms
 */
public class SysTrayTest {

    private static boolean supported = false;
    private boolean passed = true;

    public static void main(String[] args) {
        try {
			
            if(SystemTray.isSupported()) {
                 System.err.println("SystemTray is supported");
            } else {
                 System.err.println("SystemTray is NOT supported");
            }
            
        } catch (Exception e) {
            System.err.println("isSupported method threw exception");
            e.printStackTrace();
        }
    }

}
