getOrThrow should throw NoSuchElementException