RootsOfUnity implements Serializable { public synchronized boolean isCounterClockWise() throws MathIllegalStateException { if (omegaCount == 0) { throw new MathIllegalStateException( LocalizedFormats.ROOTS_OF_UNITY_NOT_COMPUTED_YET); } return isCounterClockWise; } RootsOfUnity(); synchronized boolean isCounterClockWise(); synchronized void computeRoots(int n); synchronized double getReal(int k); synchronized double getImaginary(int k); synchronized int getNumberOfRoots();  }
@Test(expected = MathIllegalStateException.class) public void testMathIllegalState3() { final RootsOfUnity roots = new RootsOfUnity(); roots.isCounterClockWise(); }