### Question:
ArimaSpec extends DefaultArimaSpec { @Override public void setP(int value) { if (value > MAXP) { throw new X13Exception("P must be <= "+Integer.toString(MAXP)); } super.setP(value); } ArimaSpec(); @Override ArimaSpec clone(); @Override void setP(int value); @Override void setD(int value); @Override void setQ(int value); @Override void setBP(int value); @Override void setBD(int value); @Override void setBQ(int value); static final int MAXP; }### Answer:
@Test(expected = X13Exception.class) public void testSetPUpperBound() { ArimaSpec expected = new ArimaSpec(); expected.setP(7); }