### Question:
ArrayIntSet { public boolean contains( int id ) { for ( int i = 0; i < arrayCount; i++ ) { if ( rels[i] == id ) { return true; } } if ( arrayCount == -1 ) { return relationshipSet.contains( id ); } return false; }  boolean add( int id ); Iterator<Integer> iterator(); boolean remove( int id ); Iterable<Integer> values(); boolean contains( int id ); int size();  }### Answer:
@Test public void testContains() { ArrayIntSet set = new ArrayIntSet(); for ( int i = 0; i < 10; i++ ) { set.add( i ); assertTrue( set.contains( i ) ); } for ( int i = 0; i < 10; i++ ) { assertTrue( set.contains( i ) ); } for ( int i = 0; i < 10; i+=2 ) { set.remove( i ); assertTrue( !set.contains( i ) ); } for ( int i = 0; i < 10; i++ ) { if ( i % 2 == 0 ) { assertTrue( !set.contains( i ) ); } else { assertTrue( set.contains( i ) ); } } for ( int i = 0; i < 1000; i++ ) { set.add( i ); assertTrue( set.contains( i ) ); } for ( int i = 0; i < 1000; i++ ) { assertTrue( set.contains( i ) ); } for ( int i = 0; i < 1000; i+=2 ) { set.remove( i ); assertTrue( !set.contains( i ) ); } for ( int i = 0; i < 1000; i++ ) { if ( i % 2 == 0 ) { assertTrue( !set.contains( i ) ); } else { assertTrue( set.contains( i ) ); } } }