@Test(expected = IndexOutOfBoundsException.class)
public void testGetBytesByteArrayNegInt() {

    final byte[] output = new byte[5];
    new NonStrictExpectations(hash) {
        {
            hash.length();
            result = output.length;
        }
    };
    hash.getBytes(output, -1, output.length);
}