public void testDimensionCheck() {
   try {
     TestProblem1 pb = new TestProblem1();
     AdaptiveStepsizeIntegrator integrator =
         new GraggBulirschStoerIntegrator(0.0, 1.0, 1.0e-10, 1.0e-10);
     integrator.integrate(
         pb, 0.0, new double[pb.getDimension() + 10], 1.0, new double[pb.getDimension() + 10]);
     fail("an exception should have been thrown");
   } catch (DerivativeException de) {
     fail("wrong exception caught");
   } catch (IntegratorException ie) {
   }
 }