@Test
public void testCannotAddNegativesToPosMap()
{
final ArrayMapWithSearchPos<CInteger, Long> ourMap = new ArrayMapWithSearchPos<CInteger, Long>();
statechum.Helper.checkForCorrectException(new whatToRun() { public @Override void run() {
ourMap.put(new CInteger(-2), 5L);
}},IllegalArgumentException.class,"negative indices are not supported");
}