use direct call to storage.resize() so that IOException is not masked with RuntimeException (IDEA-118107)
DOM index: @StubbedOccurrence