Puzzle { void eraseNumber(Point point) throws IllegalArgumentException { AssertValidIndexes(point); setNumber(point, null); } Puzzle();   Puzzle(Puzzle toCopy);  Puzzle(Integer[][] problem); void setNumber(Point point, Integer value); Integer getNumber(Point point); static final int SIZE; }
@Test(expected = IllegalArgumentException.class) public void InvalidPoint_EraseNumber_IllegalArgumentExceptionThrown() { Puzzle sut = new Puzzle(); Point validPoint = new Point(Puzzle.SIZE + 1, 0); sut.eraseNumber(validPoint); }