@Test
public void testDeallocate() throws Exception {

    final KinectRecognizer recognizer = new KinectRecognizer(null);
    recognizer.allocate();
    Assert.assertTrue(recognizer.isAllocated());
    recognizer.deallocate();
    Assert.assertFalse(recognizer.isAllocated());
}