}
@Test
public void TestMapWithSearch0b()
{
VertexID [] collectionOfKeys = new VertexID[]{new VertexID(VertKind.POSITIVE,0),new VertexID(VertKind.POSITIVE,1),new VertexID(VertKind.POSITIVE,3),new VertexID(VertKind.POSITIVE,4)};
final Attempt<VertexID,Long> map = createMap();
for(int i=0;i<collectionOfKeys.length;++i)
{
map.put(collectionOfKeys[i], new Long(1000+i));
for(int j=i+1;j < collectionOfKeys.length;++j)
{
Assert.assertFalse("j="+j+", key "+collectionOfKeys[j]+" should not exist",map.containsKey(collectionOfKeys[j]));
Assert.assertNull(map.remove(collectionOfKeys[j]));
Assert.assertNull( ((MapWithSearch<VertexID,Long>)map.getOurs()).findElementById(collectionOfKeys[j]) );
}
for(int j=0;j <= i;++j)
{
Assert.assertEquals(new Long(1000+i),map.get(collectionOfKeys[i]));
Assert.assertSame(collectionOfKeys[j], ((MapWithSearch<VertexID,Long>)map.getOurs()).findElementById(new VertexID(collectionOfKeys[j])) );
}
}
}