### Question:
Validator_void implements Validator { public static Validator_void get( int nDims ) { if (nDims != 0) throw new IllegalArgumentException( "nDims != 0" ); if (validator == null) validator = new Validator_void(); return validator; } private  Validator_void(); static Validator_void get( int nDims ); Validator elementValidator(); final boolean validate( Object value ); Object validateValue( Object value );  }### Answer:
@Test( expected = IllegalArgumentException.class ) public void testGetNeg1() { Validator_void.get( -1 ); }
@Test( expected = IllegalArgumentException.class ) public void testGetMaxPlusOne() { Validator_void.get( Validator.MAX_NDIMS+1 ); }