question: public void test_fill$Ljava_lang_ObjectIILjava_lang_Object ( ) { Object val = new Object ( ) ; Object d [ ] = new Object [ 1000 ] ; Arrays . fill ( d , 400 , d . length , val ) ; for ( int i = 0 ; i < 400 ; i ++ ) assertTrue ( "Filled elements not in range" , ! ( d [ i ] == val ) ) ; for ( int i = 400 ; i < d . length ; i ++ ) assertTrue ( "Failed to fill Object array correctly" , d [ i ] == val ) ; Arrays . fill ( d , 400 , d . length , null ) ; for ( int i = 400 ; i < d . length ; i ++ ) assertNull ( "Failed to fill Object array correctly with nulls" , d [ i ] ) ; try { Arrays . fill ( d , 10 , 0 , val ) ; fail ( "IllegalArgumentException expected" ) ; } catch ( IllegalArgumentException e ) { } try { Arrays . fill ( d , - 10 , 0 , val ) ; fail ( "ArrayIndexOutOfBoundsException expected" ) ; } catch ( ArrayIndexOutOfBoundsException e ) { } try { Arrays . fill ( d , 10 , d . length + 1 , val ) ; fail ( "ArrayIndexOutOfBoundsException expected" ) ; } catch ( ArrayIndexOutOfBoundsException e ) { } }
target:  java.util.Arrays#fill(java.lang.Object[], int, int, java.lang.Object)