MinCha/corepository — pull request #1 by benelog (2012-06-01 07:20:19+00:00)
Title: 'HashBasedMutexProvider' throws 'java.lang.ArrayIndexOutOfBoundsException' when a hash value is Integer.MIN_VALUE

I added the tests to reveal it.

@Test
public void shouldProvideLocksBySpecialKey() {
String key = "polygenelubricants";
sut = new HashBasedMutexProvider(25);

assertThat(sut.get(key), is(notNullValue()));
}