KinectRecognizer { public void allocate() throws KinectRecognizerException { handle = kinectAllocate(); } KinectRecognizer(final KinectSpokenInput spokenInput); void allocate(); boolean isAllocated(); void startRecognition(); boolean isRecognizing(); void stopRecognition(); void deallocate();  }
@Test public void testAllocate() throws Exception { final KinectRecognizer recognizer = new KinectRecognizer(null); recognizer.allocate(); Assert.assertTrue(recognizer.isAllocated()); }