As the test is intended to check the behaviour of InfinispanDirectory in case of the invalid chunk size, I've removed the new SegmentReadLocker part, and replaced it with valid SegmentReadLocker initialization.