static Device dev;
@BeforeClass
public static void initKinect() {
ctx = Freenect.createContext();
ctx.setLogHandler(new Jdk14LogHandler());
ctx.setLogLevel(LogLevel.SPEW);
if (ctx.numDevices() > 0) {
dev = ctx.openDevice(0);
} else {
System.err.println("WARNING: No kinects detected, hardware tests will be implicitly passed.");