@ContinuousIntegrationTest(estimatedDuration = 0.0) @Test(timeout = 30000) public void testPackTauMatrix() { try { joint.getJointTau(0, null); } catch(RuntimeException e) { return; // it caught an exception (which is what we wanted) so it returns (passes) } Assert.fail(); // if it doesn't catch anything it will reach this line, which will make the test fail }