Use JUnit's Assume to skip test on headless environment